Use shift instead of replace in arrow object for dm's. Closes #306

This commit is contained in:
Manuel Cortez 2019-10-03 10:33:04 -05:00
parent d97733fb1a
commit 6af39c6a2f

View File

@ -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()