Skip to content

Commit 4f2d86e

Browse files
committed
fix tests
1 parent 4511cce commit 4f2d86e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cubejs-backend-shared/test/time.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)