From 489a8da50afc1b03f3a8cd4a81320b5134b483e4 Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 28 Feb 2011 13:36:23 +0800 Subject: [PATCH] Winamax: Fix reverted(?) timezone update. --- pyfpdb/WinamaxToFpdb.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pyfpdb/WinamaxToFpdb.py b/pyfpdb/WinamaxToFpdb.py index 8f03351f..d34e92e5 100644 --- a/pyfpdb/WinamaxToFpdb.py +++ b/pyfpdb/WinamaxToFpdb.py @@ -212,13 +212,11 @@ class Winamax(HandHistoryConverter): a = self.re_DateTime.search(info[key]) if a: datetimestr = "%s/%s/%s %s:%s:%s" % (a.group('Y'),a.group('M'), a.group('D'), a.group('H'),a.group('MIN'),a.group('S')) - tzoffset = str(-time.timezone/3600) else: datetimestr = "2010/Jan/01 01:01:01" log.error(_("readHandInfo: DATETIME not matched: '%s'" % info[key])) -# print "DEBUG: readHandInfo: DATETIME not matched: '%s'" % info[key] - # TODO: Manually adjust time against OFFSET - hand.startTime = datetime.datetime.strptime(datetimestr, "%Y/%m/%d %H:%M:%S") # also timezone at end, e.g. " ET" + #print "DEBUG: readHandInfo: DATETIME not matched: '%s'" % info[key] + hand.startTime = datetime.datetime.strptime(datetimestr, "%Y/%m/%d %H:%M:%S") hand.startTime = HandHistoryConverter.changeTimezone(hand.startTime, "CET", "UTC") if key == 'HID1': # Need to remove non-alphanumerics for MySQL