aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-04-16 22:52:43 +0200
committerPapoteur <papoteur@mageialinux-online.org>2016-04-16 22:52:43 +0200
commite666ddb813a3045e769739e40a58c1b9884f580e (patch)
tree582246c0884b80f888a6e6c13b3c4887f95fb059
parent669706633eda36742c891d990bddaa4193cf6901 (diff)
downloadmsec-e666ddb813a3045e769739e40a58c1b9884f580e.tar
msec-e666ddb813a3045e769739e40a58c1b9884f580e.tar.gz
msec-e666ddb813a3045e769739e40a58c1b9884f580e.tar.bz2
msec-e666ddb813a3045e769739e40a58c1b9884f580e.tar.xz
msec-e666ddb813a3045e769739e40a58c1b9884f580e.zip
Restore a date formatting, suppressed by mistake (mga#18159)
-rwxr-xr-xsrc/msec/tools.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/msec/tools.py b/src/msec/tools.py
index cb9d1bf..bbdd29a 100755
--- a/src/msec/tools.py
+++ b/src/msec/tools.py
@@ -46,6 +46,7 @@ def get_updates_status(log, updatedir="/var/lib/urpmi"):
try:
ret = os.stat(updatedir)
updated = time.localtime(ret[stat.ST_MTIME])
+ updated_s = time.strftime(locale.nl_langinfo(locale.D_T_FMT), updated)
status = _("Last updated: %s") % Narg(updated_s)
except:
log.error(_("Unable to access %s: %s") % (updatedir, Narg(sys.exc_value)))