Skip to content

Commit ecf3bb9

Browse files
committed
ci: simplify timezone check
1 parent 8ee6a66 commit ecf3bb9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v1.5.3](https://github.com/HeyPuter/puter-cli/compare/v1.5.3...v1.5.3)
8+
9+
- ci: fix timezone issue [`8ee6a66`](https://github.com/HeyPuter/puter-cli/commit/8ee6a66db36f7ca00eb81a12c8bac094e057f534)
10+
711
#### [v1.5.3](https://github.com/HeyPuter/puter-cli/compare/v1.5.2...v1.5.3)
812

13+
> 7 February 2025
14+
915
- refactor: early return in fallback behavior [`#6`](https://github.com/HeyPuter/puter-cli/pull/6)
1016
- fix: ignore undefined appDir when listing sites [`#5`](https://github.com/HeyPuter/puter-cli/pull/5)
1117
- fix: use array args when calling DeleteSubdomain [`#4`](https://github.com/HeyPuter/puter-cli/pull/4)

tests/utils.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ describe('formatDate', () => {
1515
});
1616

1717
it('should handle different date and time', () => {
18-
const dateString = '2023-01-01T00:30:05.000Z';
19-
const dateObject = new Date(Date.UTC(2023, 0, 0, 24, 30, 5));
20-
const expected = '01/01/2023, 24:30:05';
18+
const dateString = '2023-01-01T01:30:05.000Z';
19+
const expected = '01/01/2023, 01:30:05';
2120
expect(formatDate(dateString)).toBe(expected);
22-
expect(formatDate(dateObject)).toBe(expected);
2321
});
2422

2523
it('should handle invalid date', () => {

0 commit comments

Comments
 (0)