From b159aaf77fabb59c120f2670c33db4af9070ee2c Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 30 Jul 2005 16:16:30 +0000 Subject: Reinstated freyther's patch which I inadvertently reverted during a spurious monotone merge :-( --- classes/tinderclient.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'classes') diff --git a/classes/tinderclient.bbclass b/classes/tinderclient.bbclass index 5b55589ec0..3c88b2ac63 100644 --- a/classes/tinderclient.bbclass +++ b/classes/tinderclient.bbclass @@ -5,21 +5,21 @@ def tinder_tz_offset(off): return int(off) except ValueError: if off == "Europe/Berlin": - return 200 + return 120 else: return 0 def tinder_tinder_time(offset): import datetime - td = datetime.timedelta(tinder_tz_offset(offset)) + td = datetime.timedelta(minutes=tinder_tz_offset(offset)) time = datetime.datetime.utcnow() + td return time.strftime('%m/%d/%Y %H:%M:%S') def tinder_tinder_start(date,offset): import datetime, time - td = datetime.timedelta(tinder_tz_offset(offset)) + td = datetime.timedelta(minutes=tinder_tz_offset(offset)) ti = time.strptime(date, "%m/%d/%Y %H:%M:%S") - ti = datetime.datetime(*ti[0:7])-td + time = datetime.datetime(*ti[0:7])+td return time.strftime('%m/%d/%Y %H:%M:%S') def tinder_send_email(da, header, log): -- cgit v1.2.3