YYYY-MM-DATE TIME
This commit is contained in:
parent
0668a321dc
commit
a16cdcab7d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue