Merge pull request #293 from c43721/chore/remove-moment-as-dep

chore(deps): remove moment
This commit is contained in:
Michael Morrison 2022-07-19 17:04:51 -05:00 committed by GitHub
commit aba57880f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1355 additions and 599 deletions

1948
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -44,7 +44,6 @@
"iconv-lite": "^0.6.3",
"long": "^5.2.0",
"minimist": "^1.2.6",
"moment": "^2.29.3",
"punycode": "^2.1.1",
"varint": "^6.0.0"
},

View file

@ -1,5 +1,4 @@
const moment = require('moment'),
Core = require('./core');
const Core = require('./core');
class OpenTtd extends Core {
async run(state) {
@ -116,7 +115,7 @@ class OpenTtd extends Core {
const temp = new Date(0,0,1);
temp.setFullYear(0);
temp.setDate(daysSinceZero+1);
return moment(temp).format('YYYY-MM-DD');
return temp.toISOString().split('T')[0];
}
decode(num,arr) {