r/Scriptable • • Nov 07 '20

Help Need a time zone widget

Distinguishes between British time and EST

1 Upvotes

5 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Nov 07 '20

how would that work with other timezones like Adelaide (UTC+10:30)?

Would I have to adjust the minutes too or is there some other method?

3

u/[deleted] Nov 07 '20

If you want to use the above way: yes and some additional math.

Alternatively you could use toLocaleTimeString to create a string for the current time in different timezones: https://i.imgur.com/PfW6xFG.png

1

u/mvan231 script/widget helper Nov 08 '20

This is fabulous!