Skip to content
Snippets Groups Projects
Commit 8d1edf95 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Fix url modification time parsing by hardwiring locale

parent dbd4424e
Branches
No related tags found
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment