From e0b56f65ef0318093ba2e2abd795bb375d9ebb67 Mon Sep 17 00:00:00 2001 From: Josip Date: Sat, 16 May 2015 05:04:48 +0200 Subject: [PATCH] 8561#c41511 --- gramps/gen/utils/unknown.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gen/utils/unknown.py b/gramps/gen/utils/unknown.py index 012ecb89b..62f862a1e 100644 --- a/gramps/gen/utils/unknown.py +++ b/gramps/gen/utils/unknown.py @@ -147,8 +147,11 @@ def make_unknown(class_arg, explanation, class_func, commit_func, transaction, elif isinstance(obj, Tag): if not hasattr(make_unknown, 'count'): make_unknown.count = 1 #primitive static variable + tval = time.strftime('%x %X', time.localtime()) + if sys.version_info[0] < 3: + tval = tval.decode(glocale.encoding) obj.set_name(_("Unknown, was missing %(time)s (%(count)d)") % { - 'time': time.strftime('%x %X', time.localtime()), + 'time': tval, 'count': make_unknown.count}) make_unknown.count += 1 else: