YYYY-MM-DATE TIME

This commit is contained in:
Nikos Kouremenos 2005-12-26 14:47:03 +00:00
parent 0668a321dc
commit a16cdcab7d
1 changed files with 3 additions and 2 deletions

View File

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