steamutils 1.1.36 → 1.1.38

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 -4
  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,11 +5053,11 @@ 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 {
5060
- timestamp = timestampMoment.unix()
5060
+ timestamp = timestampMoment.valueOf() / 1000
5061
5061
  timestampStr = timestampMoment.format()
5062
5062
  }
5063
5063
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.36",
3
+ "version": "1.1.38",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",