Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit 7ee1580

Browse files
committed
Fixed date not accounting for the year correctly
1 parent 3263eb7 commit 7ee1580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class ShortFormDate {
8585
@t.uint8 public offsetFromGMT!: number;
8686

8787
public get date(): Date {
88-
return new Date(this.year, this.month - 1, this.day, this.hour, this.minute, this.second);
88+
return new Date(1900 + this.year, this.month - 1, this.day, this.hour, this.minute, this.second);
8989
}
9090
}
9191

0 commit comments

Comments
 (0)