Updated to the latest version of arrow (0.15.4)

This commit is contained in:
Manuel Cortez 2019-12-16 09:56:59 -06:00
parent 977c521d7c
commit 246a10535c
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ requests-oauthlib
requests-toolbelt
pypubsub
pygeocoder
arrow==0.14.5
arrow
python-dateutil
futures
winpaths

View File

@ -705,7 +705,7 @@ class directMessagesController(baseBufferController):
tweet = self.get_tweet()
if platform.system() == "Windows" and self.session.settings["general"]["relative_times"] == True:
# fix this:
original_date = arrow.get(tweet["created_timestamp"][:-3])
original_date = arrow.get(int(tweet["created_timestamp"][:-3]))
ts = original_date.humanize(locale=languageHandler.getLanguage())
self.buffer.list.list.SetItem(self.buffer.list.get_selected(), 2, ts)
if self.session.settings['sound']['indicate_audio'] and utils.is_audio(tweet):

View File

@ -808,7 +808,7 @@ class Controller(object):
elif buffer.type == "dm":
non_tweet = buffer.get_formatted_message()
item = buffer.get_right_tweet()
original_date = arrow.get(item["created_timestamp"][:-3])
original_date = arrow.get(int(item["created_timestamp"][:-3]))
date = original_date.shift(seconds=buffer.session.db["utc_offset"]).format(_(u"MMM D, YYYY. H:m"), locale=languageHandler.getLanguage())
msg = messages.viewTweet(non_tweet, [], False, date=date)
else: