bdw429s
03/07/2022, 10:17 PMgetTimeZoneInfo()
, am I thinking wrong, or is this part of the return value backwards?
• `utcTotalOffset`: offset of local time, in seconds, from UTC
◦ A plus sign indicates a time zone west of UTC (such as a zone in North America)
◦ A minus sign indicates a time zone east of UTC (such as a zone in Germany)The US, for example, would be before UTC and have a time less than UTC, so central should have an off negative 6 hours, not positive 6 hours, right?
bdw429s
03/07/2022, 10:18 PMoffset
which appears to have the "correct" positive/negative offset.s1deburn
03/07/2022, 10:28 PMAdam Cameron
Adam Cameron
Adam Cameron
rstewart
03/07/2022, 10:35 PMAdam Cameron
He’s finishing upDon't be so sure of that...
rstewart
03/07/2022, 10:36 PMAdam Cameron
bdw429s
03/07/2022, 10:43 PMbdw429s
03/07/2022, 10:44 PMUTC−06:00
bdw429s
03/07/2022, 10:44 PMbdw429s
03/07/2022, 10:50 PMzackster
03/08/2022, 3:06 AMseancorfield
It's worth noting, Lucee has an additional key in the returned struct called offset which appears to have the "correct" positive/negative offset.(which is what Brad said at the beginning of this thread)
zackster
03/08/2022, 12:25 PMtimezone
which is the same as the existing id
key for compat
https://github.com/lucee/Lucee/commit/c93dcfe71dc3cb3a542b75d0bc40f82a0843102czackster
03/08/2022, 12:28 PMbdw429s
03/08/2022, 2:36 PMseancorfield