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