Update openttd.js

Fix typo in moment removal
This commit is contained in:
Michael Morrison 2022-07-19 17:04:26 -05:00 committed by GitHub
parent d18176fa71
commit 86009a623f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class OpenTtd extends Core {
const temp = new Date(0,0,1);
temp.setFullYear(0);
temp.setDate(daysSinceZero+1);
return date.toISOString().split('T')[0];
return temp.toISOString().split('T')[0];
}
decode(num,arr) {