summaryrefslogtreecommitdiff
path: root/loader/lib/parser.py
diff options
context:
space:
mode:
authorMagnus Hagander2012-07-06 10:08:14 +0000
committerMagnus Hagander2012-07-06 10:37:39 +0000
commitb65da6a2a417933e6f9ff69ae1a5aea7d5ac5921 (patch)
tree167bff9d12bdf661c5a788dff99c8aef0c2594d0 /loader/lib/parser.py
parente1d19fb14af2fc7776c35f09a639424ce45b7b8f (diff)
Work around more broken dates
Diffstat (limited to 'loader/lib/parser.py')
-rw-r--r--loader/lib/parser.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/loader/lib/parser.py b/loader/lib/parser.py
index 60caa8c..408a020 100644
--- a/loader/lib/parser.py
+++ b/loader/lib/parser.py
@@ -291,11 +291,25 @@ class ArchivesParser(object):
if d.endswith('+-100'):
d = d.replace('+-100', '+0100')
if d.endswith('+500'):
- d = d.replace('+500', '0500')
+ d = d.replace('+500', '+0500')
+ if d.endswith('-500'):
+ d = d.replace('-500', '-0500')
+ if d.endswith('-700'):
+ d = d.replace('-700', '-0700')
+ if d.endswith('-800'):
+ d = d.replace('-800', '-0800')
+ if d.endswith('+05-30'):
+ d = d.replace('+05-30', '+0530')
if d.endswith('Mexico/General'):
d = d.replace('Mexico/General','CDT')
if d.endswith('Pacific Daylight Time'):
d = d.replace('Pacific Daylight Time', 'PDT')
+ if d.endswith(' ZE2'):
+ d = d.replace(' ZE2',' +0200')
+ if d.find('-Juin-') > 0:
+ d = d.replace('-Juin-','-Jun-')
+ if d.find('-Juil-') > 0:
+ d = d.replace('-Juil-','-Jul-')
if self._date_multiminus_re.search(d):
d = self._date_multiminus_re.sub(' \\1', d)