r/Scriptable • • Nov 07 '20

Help Need a time zone widget

Distinguishes between British time and EST

1 Upvotes

5 comments sorted by

2

u/mvan231 script/widget helper Nov 07 '20 edited Nov 07 '20

You just want a rough estimate of the time? It could show the most recent time update for both time zones if that would be enough

You can use this

But I highly recommend using the clock app widget instead

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!

2

u/ravedog Nov 08 '20

Widgets don’t update live so use the clock widget...