summaryrefslogtreecommitdiff
path: root/classes/tinderclient.bbclass
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2005-07-29 09:54:01 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-29 09:54:01 +0000
commit10eba0d2b82d58576ed28f9d73d8c66ba25c4164 (patch)
tree2299dc82b66f06781360197daa4a90255bf3c683 /classes/tinderclient.bbclass
parentdcdd7c50d560dab19133a25afa01d7f9af0d64e3 (diff)
parent72f3abf7ebdd93ca6cfc8605951eb52d04b2fcf0 (diff)
propagate from branch 'org.openembedded.dev' (head 824eb36b8f7f8e9953dd561a9f464e50042c85e2)
to branch 'org.openembedded.nslu2-linux' (head 2692c20b64cebd9a996a3ec7d793938f235c2cd6)
Diffstat (limited to 'classes/tinderclient.bbclass')
-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):