From 99fcab83c8ef919f44a32a5668785c53b305a602 Mon Sep 17 00:00:00 2001 From: taizan-hokouto <55448286+taizan-hokuto@users.noreply.github.com> Date: Sun, 15 Nov 2020 15:49:39 +0900 Subject: [PATCH] Revert --- pytchat/processors/default/renderer/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pytchat/processors/default/renderer/base.py b/pytchat/processors/default/renderer/base.py index 3c99951..d6826c9 100644 --- a/pytchat/processors/default/renderer/base.py +++ b/pytchat/processors/default/renderer/base.py @@ -1,4 +1,4 @@ -from datetime import datetime, timedelta, timezone +from datetime import datetime class Author: @@ -90,8 +90,7 @@ class BaseRenderer: self.chat.author.badgeUrl = badge["liveChatAuthorBadgeRenderer"]["customThumbnail"]["thumbnails"][0]["url"] def get_datetime(self, timestamp): - jst = timezone(timedelta(hours=9)) - dt = datetime.fromtimestamp(timestamp / 1000000, jst) + dt = datetime.fromtimestamp(timestamp / 1000000) return dt.strftime('%Y-%m-%d %H:%M:%S') def get_chatobj(self):