summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2005-07-30 23:29:35 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-30 23:29:35 +0000
commitf04420fc3411246cd8d2d9e283f6e9073158901b (patch)
tree56f541c3e049bcaddf7120b326239e3d5db19c26
parent20e62e34bfcd57b468f60847c5ba9c3c691cc517 (diff)
openembedded/classes/tinderclient.bbclass:
-timedelta in minutes not hours -tinder_start add the timedelta instead of subtracting it -Berlin is just 120 minutes away from UTC (60 + 60 from dst) -TINDER_TZ takes time in minutes
-rw-r--r--classes/tinderclient.bbclass8
1 files changed, 4 insertions, 4 deletions
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):