steamutils 1.1.37 → 1.1.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. 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
- // this._cookies.setCookie('timezoneOffset', new Date().getTimezoneOffset() * -1 * 60)
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.utc(`${tradehistory_date} ${tradehistory_timestamp}`, `D MMM, YYYY h:mma`, true)
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",