mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
Merge pull request #293 from c43721/chore/remove-moment-as-dep
chore(deps): remove moment
This commit is contained in:
commit
aba57880f1
3 changed files with 1355 additions and 599 deletions
1948
package-lock.json
generated
1948
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue