HomeyScript and system clock

toLocaleTimeString() by itself only formats a time string according to the current locale, not the current timezone. For that, see this post.