steamutils 1.1.30 → 1.1.32

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 +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5046,12 +5046,13 @@ class SteamUser {
5046
5046
 
5047
5047
  let timestamp = 0
5048
5048
  let timestampStr = `${tradehistory_date} ${tradehistory_timestamp}`
5049
- const timestampMoment = moment(`${tradehistory_date} ${tradehistory_timestamp}`, `D MMM, YYYY h:mma`, true)
5049
+ //cccccccccccccccccc
5050
+ const timestampMoment = moment(`${tradehistory_date} ${tradehistory_timestamp}`, `D MMM, YYYY h:mma`, true).local(true)
5050
5051
  if (!timestampMoment.isValid()) {
5051
5052
  console.log(`${tradehistory_date} ${tradehistory_timestamp}`);
5052
5053
  } else {
5053
- //local time stamp
5054
- timestamp = timestampMoment.local(true).unix()
5054
+ timestamp = timestampMoment.unix()
5055
+ timestampStr = timestampMoment.format()
5055
5056
  }
5056
5057
 
5057
5058
  const tradehistory_event_description_el = tradehistoryrow_el.find('.tradehistory_event_description')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.30",
3
+ "version": "1.1.32",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",