File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/cubejs-backend-shared/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ describe('extractDate', () => {
295295 it ( 'should parse a date without timezone as UTC' , ( ) => {
296296 const input = [ { date : '2025-02-28 12:00:00' } ] ;
297297 const result = parseUtcIntoLocalDate ( input , timezone ) ;
298- expect ( result ) . toBe ( '2025-02-28T12 :00:00.000' ) ;
298+ expect ( result ) . toBe ( '2025-02-28T14 :00:00.000' ) ;
299299 } ) ;
300300
301301 it ( 'should handle multiple formats' , ( ) => {
@@ -304,8 +304,8 @@ describe('extractDate', () => {
304304 const input3 = [ { date : '2025-02-28T12:00:00Z' } ] ;
305305 const input4 = [ { date : '2025-02-28T12:00:00+03:00' } ] ;
306306
307- expect ( parseUtcIntoLocalDate ( input1 , timezone ) ) . toBe ( '2025-02-28T12 :00:00.000' ) ;
308- expect ( parseUtcIntoLocalDate ( input2 , timezone ) ) . toBe ( '2025-02-28T12 :00:00.000' ) ;
307+ expect ( parseUtcIntoLocalDate ( input1 , timezone ) ) . toBe ( '2025-02-28T14 :00:00.000' ) ;
308+ expect ( parseUtcIntoLocalDate ( input2 , timezone ) ) . toBe ( '2025-02-28T14 :00:00.000' ) ;
309309 expect ( parseUtcIntoLocalDate ( input3 , timezone ) ) . toBe ( '2025-02-28T14:00:00.000' ) ;
310310 expect ( parseUtcIntoLocalDate ( input4 , timezone ) ) . toBe ( '2025-02-28T11:00:00.000' ) ;
311311 } ) ;
You can’t perform that action at this time.
0 commit comments