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

Commit

Permalink
Fixed date not accounting for the year correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Oct 30, 2024
1 parent 3263eb7 commit 7ee1580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class ShortFormDate {
@t.uint8 public offsetFromGMT!: number;

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

Expand Down

0 comments on commit 7ee1580

Please sign in to comment.