steamutils 1.1.34 → 1.1.36
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -582,6 +582,7 @@ class SteamUser {
|
|
582
582
|
constructor (cookies) {
|
583
583
|
this._cookies = new CookieManager(cookies)
|
584
584
|
this._cookies.removeCookie('timezoneOffset')
|
585
|
+
// this._cookies.setCookie('timezoneOffset', new Date().getTimezoneOffset() * -1 * 60)
|
585
586
|
|
586
587
|
let {
|
587
588
|
steamMachineAuth,
|
@@ -5052,7 +5053,7 @@ class SteamUser {
|
|
5052
5053
|
|
5053
5054
|
let timestamp = 0
|
5054
5055
|
let timestampStr = `${tradehistory_date} ${tradehistory_timestamp}`
|
5055
|
-
const timestampMoment = moment(`${tradehistory_date} ${tradehistory_timestamp}`, `D MMM, YYYY h:mma`, true)
|
5056
|
+
const timestampMoment = moment.utc(`${tradehistory_date} ${tradehistory_timestamp}`, `D MMM, YYYY h:mma`, true)
|
5056
5057
|
if (!timestampMoment.isValid()) {
|
5057
5058
|
console.log(`${tradehistory_date} ${tradehistory_timestamp}`);
|
5058
5059
|
} else {
|