Skip to content

Commit

Permalink
Update TwitchChannelPointsMiner/classes/entities/Streamer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkd-Alex authored Mar 9, 2021
1 parent 25b28ef commit 24bf4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchChannelPointsMiner/classes/entities/Streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def persistent_series(self, event_type="Watch"):
def __save_json(self, key, data={}, event_type="Watch"):
# https://stackoverflow.com/questions/4676195/why-do-i-need-to-multiply-unix-timestamps-by-1000-in-javascript
# data.update({"x": round(time.time() * 1000)})
now = datetime.now().replace(microsecond=0)
now = datetime.utcnow().replace(microsecond=0)
data.update({"x": round(datetime.timestamp(now) * 1000)})

if key == "series":
Expand Down

0 comments on commit 24bf4c4

Please sign in to comment.