aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-04-16 10:34:43 +0200
committerPapoteur <papoteur@mageialinux-online.org>2016-04-16 10:34:43 +0200
commita3989de3cddc98d1852c0a66634e75135f51bf4b (patch)
tree22cd1f5be3fc5caa54c3d7866e3c424f7c25b1dc /src
parent0439b08c45cd29659d67be73364f8236a72466df (diff)
downloadmsec-a3989de3cddc98d1852c0a66634e75135f51bf4b.tar
msec-a3989de3cddc98d1852c0a66634e75135f51bf4b.tar.gz
msec-a3989de3cddc98d1852c0a66634e75135f51bf4b.tar.bz2
msec-a3989de3cddc98d1852c0a66634e75135f51bf4b.tar.xz
msec-a3989de3cddc98d1852c0a66634e75135f51bf4b.zip
Restore a date formatting, suppressed by mistake (mga#18159)
Diffstat (limited to 'src')
-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 044a299..c9be55d 100755
--- a/src/msec/tools.py
+++ b/src/msec/tools.py
@@ -44,6 +44,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") % updated_s
except:
log.error(_("Unable to access %s: %s") % (updatedir, sys.exc_info()[1]))