From c3b2e56614afa3b9b0dd90d2e0823816fac55f59 Mon Sep 17 00:00:00 2001 From: Worros Date: Wed, 8 Sep 2010 16:02:18 +0800 Subject: [PATCH] OnGame: Debugging Betfair skin date format with user --- pyfpdb/OnGameToFpdb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyfpdb/OnGameToFpdb.py b/pyfpdb/OnGameToFpdb.py index e1db196e..a687a9da 100755 --- a/pyfpdb/OnGameToFpdb.py +++ b/pyfpdb/OnGameToFpdb.py @@ -221,8 +221,9 @@ class OnGame(HandHistoryConverter): 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 = a.group('OFFSET') else: - datetimestr = "2010/01/01 01:01:01" + 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/%b/%d %H:%M:%S") # also timezone at end, e.g. " ET" hand.startTime = HandHistoryConverter.changeTimezone(hand.startTime, tzoffset, "UTC")