From 60ec9ab2158bb78177ab1c51f63adb062651376c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Fri, 5 Dec 2014 11:31:58 -0600 Subject: [PATCH] Date is displayed properly in the GUI --- src/gui/buffers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/buffers/base.py b/src/gui/buffers/base.py index 93913faf..e5c9b9bb 100644 --- a/src/gui/buffers/base.py +++ b/src/gui/buffers/base.py @@ -150,7 +150,7 @@ class basePanel(wx.Panel): if config.main["general"]["relative_times"] == True: # On windows we need only put the new date on the column, but under linux and mac it isn't possible. if self.system == "Windows": - original_date = datetime.datetime.strptime(tweet["created_at"], "%a %b %d %H:%M:%S +0000 %Y") + original_date = datetime.datetime.strptime(self.db.settings[self.name_buffer][self.list.get_selected()]["created_at"], "%a %b %d %H:%M:%S +0000 %Y") date = original_date-datetime.timedelta(seconds=-self.db.settings["utc_offset"]) ts = prettydate(original_date) self.list.list.SetStringItem(self.list.get_selected(), 2, ts)