mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Updated to the latest version of arrow (0.15.4)
This commit is contained in:
parent
977c521d7c
commit
246a10535c
@ -9,7 +9,7 @@ requests-oauthlib
|
|||||||
requests-toolbelt
|
requests-toolbelt
|
||||||
pypubsub
|
pypubsub
|
||||||
pygeocoder
|
pygeocoder
|
||||||
arrow==0.14.5
|
arrow
|
||||||
python-dateutil
|
python-dateutil
|
||||||
futures
|
futures
|
||||||
winpaths
|
winpaths
|
||||||
|
@ -705,7 +705,7 @@ class directMessagesController(baseBufferController):
|
|||||||
tweet = self.get_tweet()
|
tweet = self.get_tweet()
|
||||||
if platform.system() == "Windows" and self.session.settings["general"]["relative_times"] == True:
|
if platform.system() == "Windows" and self.session.settings["general"]["relative_times"] == True:
|
||||||
# fix this:
|
# 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())
|
ts = original_date.humanize(locale=languageHandler.getLanguage())
|
||||||
self.buffer.list.list.SetItem(self.buffer.list.get_selected(), 2, ts)
|
self.buffer.list.list.SetItem(self.buffer.list.get_selected(), 2, ts)
|
||||||
if self.session.settings['sound']['indicate_audio'] and utils.is_audio(tweet):
|
if self.session.settings['sound']['indicate_audio'] and utils.is_audio(tweet):
|
||||||
|
@ -808,7 +808,7 @@ class Controller(object):
|
|||||||
elif buffer.type == "dm":
|
elif buffer.type == "dm":
|
||||||
non_tweet = buffer.get_formatted_message()
|
non_tweet = buffer.get_formatted_message()
|
||||||
item = buffer.get_right_tweet()
|
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())
|
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)
|
msg = messages.viewTweet(non_tweet, [], False, date=date)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user