diff --git a/pytchat/__init__.py b/pytchat/__init__.py index d24aa4c..c4c3d64 100644 --- a/pytchat/__init__.py +++ b/pytchat/__init__.py @@ -2,7 +2,7 @@ pytchat is a lightweight python library to browse youtube livechat without Selenium or BeautifulSoup. """ __copyright__ = 'Copyright (C) 2019, 2020 taizan-hokuto' -__version__ = '0.4.3' +__version__ = '0.4.4' __license__ = 'MIT' __author__ = 'taizan-hokuto' __author_email__ = '55448286+taizan-hokuto@users.noreply.github.com' 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):