@@ -412,6 +412,10 @@ describe('#unit BoltProtocolV5x0', () => {
412
412
'DateTimeWithZoneOffset' ,
413
413
new DateTime ( 2022 , 6 , 14 , 15 , 21 , 18 , 183_000_000 , 120 * 60 )
414
414
] ,
415
+ [
416
+ 'DateTimeWithZoneOffset / 1978' ,
417
+ new DateTime ( 1978 , 12 , 16 , 10 , 5 , 59 , 128000987 , - 150 * 60 )
418
+ ] ,
415
419
[
416
420
'DateTimeWithZoneId / Berlin 2:30 CET' ,
417
421
new DateTime ( 2022 , 10 , 30 , 2 , 30 , 0 , 183_000_000 , 2 * 60 * 60 , 'Europe/Berlin' )
@@ -515,6 +519,14 @@ describe('#unit BoltProtocolV5x0', () => {
515
519
[
516
520
'DateTimeWithZoneId / Sao Paulo just 1 after turn winter time' ,
517
521
new DateTime ( 2019 , 2 , 18 , 1 , 0 , 0 , 183_000_000 , undefined , 'America/Sao_Paulo' )
522
+ ] ,
523
+ [
524
+ 'DateTimeWithZoneId / Istanbul' ,
525
+ new DateTime ( 1978 , 12 , 16 , 12 , 35 , 59 , 128000987 , undefined , 'Europe/Istanbul' )
526
+ ] ,
527
+ [
528
+ 'DateTimeWithZoneId / Istanbul' ,
529
+ new DateTime ( 2020 , 6 , 15 , 4 , 30 , 0 , 183_000_000 , undefined , 'Pacific/Honolulu' )
518
530
]
519
531
] ) ( 'should pack and unpack DateTimeWithZoneId and without offset (%s)' , ( _ , object ) => {
520
532
const buffer = alloc ( 256 )
@@ -824,6 +836,13 @@ describe('#unit BoltProtocolV5x0', () => {
824
836
] ) ,
825
837
new DateTime ( 2022 , 6 , 14 , 15 , 21 , 18 , 183_000_000 , 120 * 60 )
826
838
] ,
839
+ [
840
+ 'DateTimeWithZoneOffset / 1978' ,
841
+ new structure . Structure ( 0x49 , [
842
+ 282659759 , 128000987 , - 150 * 60
843
+ ] ) ,
844
+ new DateTime ( 1978 , 12 , 16 , 10 , 5 , 59 , 128000987 , - 150 * 60 )
845
+ ] ,
827
846
[
828
847
'DateTimeWithZoneId' ,
829
848
new structure . Structure ( 0x69 , [
@@ -837,6 +856,13 @@ describe('#unit BoltProtocolV5x0', () => {
837
856
1655212878 , 183_000_000 , 'Australia/Eucla'
838
857
] ) ,
839
858
new DateTime ( 2022 , 6 , 14 , 22 , 6 , 18 , 183_000_000 , 8 * 60 * 60 + 45 * 60 , 'Australia/Eucla' )
859
+ ] ,
860
+ [
861
+ 'DateTimeWithZoneId / Honolulu' ,
862
+ new structure . Structure ( 0x69 , [
863
+ 1592231400 , 183_000_000 , 'Pacific/Honolulu'
864
+ ] ) ,
865
+ new DateTime ( 2020 , 6 , 15 , 4 , 30 , 0 , 183_000_000 , - 10 * 60 * 60 , 'Pacific/Honolulu' )
840
866
]
841
867
] ) ( 'should unpack spatial types and temporal types (%s)' , ( _ , struct , object ) => {
842
868
const buffer = alloc ( 256 )
0 commit comments