From a3989de3cddc98d1852c0a66634e75135f51bf4b Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 16 Apr 2016 10:34:43 +0200 Subject: Restore a date formatting, suppressed by mistake (mga#18159) --- src/msec/tools.py | 1 + 1 file changed, 1 insertion(+) 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])) -- cgit v1.2.1