steamutils 1.1.35 → 1.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -581,7 +581,8 @@ class SteamUser {
581
581
 
582
582
  constructor (cookies) {
583
583
  this._cookies = new CookieManager(cookies)
584
- this._cookies.setCookie('timezoneOffset', new Date().getTimezoneOffset() * -1 * 60)
584
+ this._cookies.removeCookie('timezoneOffset')
585
+ // this._cookies.setCookie('timezoneOffset', new Date().getTimezoneOffset() * -1 * 60)
585
586
 
586
587
  let {
587
588
  steamMachineAuth,
@@ -5052,11 +5053,11 @@ 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 {
5059
- timestamp = timestampMoment.unix()
5060
+ timestamp = timestampMoment.valueOf() / 1000
5060
5061
  timestampStr = timestampMoment.format()
5061
5062
  }
5062
5063
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.35",
3
+ "version": "1.1.37",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",