mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Use shift instead of replace in arrow object for dm's. Closes #306
This commit is contained in:
parent
d97733fb1a
commit
6af39c6a2f
@ -809,7 +809,7 @@ class Controller(object):
|
||||
non_tweet = buffer.get_formatted_message()
|
||||
item = buffer.get_right_tweet()
|
||||
original_date = arrow.get(item["created_timestamp"][:-3])
|
||||
date = original_date.replace(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)
|
||||
else:
|
||||
non_tweet = buffer.get_formatted_message()
|
||||
|
Loading…
Reference in New Issue
Block a user