From e666ddb813a3045e769739e40a58c1b9884f580e Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 16 Apr 2016 22:52: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 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))) -- cgit v1.2.1