From c78eeb5b51148949795a05c5595b15328cfa99c9 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 3 Jun 2012 21:56:02 +0000 Subject: [PATCH] [Bug 5825] Error in SessionLog locale.nl_info isn't supported, but we can use an ISO8601-like format without localization. svn: r19751 --- src/plugins/gramplet/SessionLogGramplet.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/gramplet/SessionLogGramplet.py b/src/plugins/gramplet/SessionLogGramplet.py index 56fd02603..a35171cfd 100644 --- a/src/plugins/gramplet/SessionLogGramplet.py +++ b/src/plugins/gramplet/SessionLogGramplet.py @@ -23,7 +23,6 @@ # GRAMPS modules # #------------------------------------------------------------------------ -import locale import time from gen.lib import Person, Family @@ -39,8 +38,6 @@ from Utils import family_name # #------------------------------------------------------------------------ class LogGramplet(Gramplet): - _t_fmt = locale.nl_langinfo(locale.T_FMT) - def init(self): self.set_tooltip(_("Click name to change active\nDouble-click name to edit")) self.set_text(_("Log for this Session") + "\n") @@ -48,7 +45,7 @@ class LogGramplet(Gramplet): self.last_log = None def timestamp(self): - self.append_text(time.strftime(LogGramplet._t_fmt) + " ") + self.append_text(time.strftime("%Y-%m-%d %H:%M:%S ")) def db_changed(self): self.timestamp()