File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,15 @@ test('formatDate does not reformat invalid date', () => {
12
12
test ( 'formatDateTime reformats date with a time if provided' , ( ) => {
13
13
expect ( formatDateTime ( '04/12/19' ) ) . toEqual ( '2019-04-12' ) ;
14
14
expect ( formatDateTime ( '2019-04-12T08:00:00' ) ) . toEqual ( '2019-04-12T08:00:00+00:00' ) ;
15
- expect ( formatDateTime ( '2019-04-12T08:00:00+01:00' ) ) . toEqual ( '2019-04-12T07:00:00+00:00' ) ;
16
15
} ) ;
17
16
18
17
test ( 'formatDateTime respects timeZone information if provided' , ( ) => {
19
18
const dateTimeWithZone = '2020-05-08T18:00:00+00:00' ;
20
19
expect ( formatDateTime ( dateTimeWithZone ) ) . toEqual ( '2020-05-08T18:00:00+00:00' ) ;
21
20
const secondDate = '2020-05-08T18:00:00Z' ;
22
21
expect ( formatDateTime ( secondDate ) ) . toEqual ( '2020-05-08T18:00:00+00:00' ) ;
22
+ const thirdDate = '2019-04-12T08:00:00+01:00' ;
23
+ expect ( formatDateTime ( thirdDate ) ) . toEqual ( '2019-04-12T07:00:00+00:00' ) ;
23
24
} ) ;
24
25
25
26
test ( 'formatDateTime does not reformat invalid date' , ( ) => {
You can’t perform that action at this time.
0 commit comments