Skip to content
Snippets Groups Projects
Commit 5963f01d authored by Isaac Evavold's avatar Isaac Evavold
Browse files

fix off-by-one year formatting error

parent 159d0d69
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ export class YearCode { ...@@ -7,7 +7,7 @@ export class YearCode {
public get fromYear(): number { public get fromYear(): number {
const century = 1900 + parseInt(this.centuryOffset, 10) * 100; const century = 1900 + parseInt(this.centuryOffset, 10) * 100;
const year = century + parseInt(this.yearOffset, 10); const year = century + parseInt(this.yearOffset, 10) - 1;
return year; return year;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment