We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ffdd6f commit 3ab623cCopy full SHA for 3ab623c
tests/utils.spec.ts
@@ -4,14 +4,14 @@ import { KCWDate } from "../src/utils";
4
5
describe("format", () => {
6
it("should format date correctly", () => {
7
- const date = new KCWDate("August 25, 2024 07:00:00 GMT+0900");
+ const date = new KCWDate("August 25, 2024 07:00:00");
8
expect(date.format("yyyy/MM/dd HH:mm:ss")).toBe("2024/08/25 07:00:00");
9
});
10
11
12
describe("ETA", () => {
13
it("should calculate ETA correctly", () => {
14
15
const eta = KCWDate.ETA(1000 * 60 * 60, date.getTime());
16
expect(eta.format("yyyy/MM/dd HH:mm:ss")).toBe("2024/08/25 08:00:00");
17
0 commit comments