From: davyd Date: Sun, 8 Feb 2004 09:45:21 +0000 (+0000) Subject: Date string issues, Adrian fixed his blog X-Git-Url: https://git.ucc.asn.au/?p=planet-ucc.git;a=commitdiff_plain;h=1eee04708eb32a4eaa15adbca4b4013f1efb7e6c Date string issues, Adrian fixed his blog --- diff --git a/XMLParse.py b/XMLParse.py index 69edc6c..8ce8e40 100644 --- a/XMLParse.py +++ b/XMLParse.py @@ -132,7 +132,7 @@ class RDFParse(Parse): elif node2.nodeType == 1 and node2.tagName == 'dc:date': date = self.__retrieve_value__(node2) try: - item.itemDate = time.mktime(time.strptime(date, '%Y-%m-%dT%H:%M:%S+07:00')) + 3600 + item.itemDate = time.mktime(time.strptime(date, '%Y-%m-%dT%H:%M:%S+08:00')) except: sys.stderr.write("DEBUG: RDFParse: time string %s unparseable\n" % date) elif node2.nodeType == 1 and node2.tagName == 'description':