The timezone offset was miss-calculated because of an error on extracting timezone information when the hour equals to 0. The problems happens because Intl.DateTimeFormat when configured with hour12: false returns 0 hour as 24.
The solution for this is convert 24 to 0 before calculate the offset.
NOTE:
Other valid solution would be change hourCycle to h23. However, this solution is not supported by all javascript environment.
The timezone offset was miss-calculated because of an error on extracting timezone information when the hour equals to
0
. The problems happens becauseIntl.DateTimeFormat
when configured withhour12: false
returns0
hour as24
.The solution for this is convert
24
to0
before calculate theoffset
.NOTE: Other valid solution would be change
hourCycle
toh23
. However, this solution is not supported by all javascript environment.Backports: https://github.com/neo4j/neo4j-javascript-driver/pull/1097