Web templates: Displaying timezone offset from UTC/GMT (eg "GMT+0100")
Posted: Sun 06 Sep 2020 6:18 pm
I know that <#timeUTC> will display time in UTC/GMT, as opposed to local time, but is there a way of displaying the offset (eg "GMT+0100" or "+0100") between local time and UTC, so as to say "all times on this site are GMT+0100" or something like that?
I found a format string "0zzz" that can be applied to a time, but the example information on https://cumuluswiki.org/a/Webtags for "0zzz" seems to be wrong: it actually prints the time in UTC rather than a string that describes the offset. I tried <#time format="0zzz"> in the indexT.htm file and got the UTC time rather than time offset in hours.
(I've searched the forum for posts containing "UTC" or "GMT" in case the question had already been asked and answered, but there were no matches.)
I found a format string "0zzz" that can be applied to a time, but the example information on https://cumuluswiki.org/a/Webtags for "0zzz" seems to be wrong: it actually prints the time in UTC rather than a string that describes the offset. I tried <#time format="0zzz"> in the indexT.htm file and got the UTC time rather than time offset in hours.
(I've searched the forum for posts containing "UTC" or "GMT" in case the question had already been asked and answered, but there were no matches.)