From 8d1edf955d4fda98b4e5d5efcb010102f54cda76 Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Wed, 18 Oct 2017 16:10:22 +0200 Subject: [PATCH] Fix url modification time parsing by hardwiring locale --- src/mio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mio.py b/src/mio.py index cc2503d..84a2b42 100755 --- a/src/mio.py +++ b/src/mio.py @@ -14,6 +14,7 @@ import re import sys from mio.exception import * from mio.log import log, MUTE, SILENT, NORMAL, VERBOSE +import locale # Fix for older python version that does not have True and False defined if not hasattr(__builtins__, "True"): @@ -120,6 +121,7 @@ class FindAndParse: print "Failed to locate: %s" % target if __name__ == '__main__': + locale.setlocale(locale.LC_TIME, 'C') optParser = argparse.ArgumentParser(usage="%(prog)s [options]") optParser.add_argument("--backup", action="store", -- GitLab