From a16cdcab7d1642215882d5bb4137bfef2e869400 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 26 Dec 2005 14:47:03 +0000 Subject: [PATCH] YYYY-MM-DATE TIME --- src/history_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/history_window.py b/src/history_window.py index 578ddcf5d..4f7e0c089 100644 --- a/src/history_window.py +++ b/src/history_window.py @@ -326,7 +326,7 @@ class HistoryWindow: # also do we need show at all? for row in results: local_time = time.localtime(row[1]) - tim = time.strftime('%c', local_time) + tim = time.strftime('%F %X', local_time) model.append((row[0], tim, row[4])) def on_results_treeview_row_activated(self, widget, path, column): @@ -338,7 +338,7 @@ class HistoryWindow: model = widget.get_model() iter = model.get_iter(path) # make it (Y, M, D, ...) - tim = time.strptime(model[iter][C_TIME], '%c') + tim = time.strptime(model[iter][C_TIME], '%F %X') year = tim[0] gtk_month = tim[1] month = gtkgui_helpers.make_python_month_gtk_month(gtk_month) @@ -350,5 +350,6 @@ class HistoryWindow: self.calendar.select_day(day) + # self.history_buffer.get_bounds() #FIXME: start_iter.forward_search(string, TEXT_SEARCH_VISIBLE_ONLY, None) # on double click and scroll there and maybe even highlight it