File tree Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 1818 "typescript" : " ^2.5.2"
1919 },
2020 "dependencies" : {
21- "@types/moment" : " ^2.13.0" ,
2221 "bignumber.js" : " ^4.0.3" ,
2322 "got" : " ^7.1.0" ,
2423 "json2typescript" : " ^1.0.2" ,
25- "moment" : " ^2.20.0" ,
2624 "query-string" : " ^5.0.0" ,
2725 "retry-promise-typescript" : " ^1.0.5" ,
2826 "tslib" : " ^1.7.1"
Original file line number Diff line number Diff line change 11import { JsonConverter , JsonCustomConvert } from 'json2typescript' ;
22import BigNumber from 'bignumber.js' ;
3- import * as moment from "moment" ;
43
54// Disable the error about 15 decimal places
65// Happens during Bittrex.marketSummaries()
@@ -13,7 +12,7 @@ export class DateConverter implements JsonCustomConvert<Date> {
1312 }
1413
1514 deserialize ( date : any ) : Date {
16- return moment . utc ( date ) . toDate ( ) ;
15+ return new Date ( date + 'Z' ) ;
1716 }
1817}
1918
Original file line number Diff line number Diff line change 88 dependencies :
99 " @types/node" " *"
1010
11- " @types/moment@^2.13.0 " :
12- version "2.13.0"
13- resolved "https://registry.yarnpkg.com/@types/moment/-/moment-2.13.0.tgz#604ebd189bc3bc34a1548689404e61a2a4aac896"
14- dependencies :
15- moment "*"
16-
1711" @types/node@*" , "@types/node@^8.0.26":
1812 version "8.0.28"
1913 resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.28.tgz#86206716f8d9251cf41692e384264cbd7058ad60"
@@ -166,10 +160,6 @@ mkdirp@^0.5.1:
166160 dependencies :
167161 minimist "0.0.8"
168162
169- moment@*, moment@^2.20.0 :
170- version "2.20.0"
171- resolved "https://registry.yarnpkg.com/moment/-/moment-2.20.0.tgz#53396358994dd3a551e966a66af715ecb6c30ad0"
172-
173163object-assign@^4.1.0 :
174164 version "4.1.1"
175165 resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
You can’t perform that action at this time.
0 commit comments