From f0738f6b0795d84f373bd7fe3b2d5a9686884f6a Mon Sep 17 00:00:00 2001 From: baldo Date: Sat, 12 Sep 2015 09:35:29 +0200 Subject: [PATCH] Fake Zeit raus + Tagesnummer korrekt berechnen --- ffnord-con-2015-2/room/service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffnord-con-2015-2/room/service b/ffnord-con-2015-2/room/service index 853f613..65db95e 100755 --- a/ffnord-con-2015-2/room/service +++ b/ffnord-con-2015-2/room/service @@ -9,7 +9,7 @@ from datetime import datetime, date diff = None # Fake time in UTC -diff = datetime(2015,9,11,7,29,00) - datetime.utcnow() +#diff = datetime(2015,9,11,7,29,00) - datetime.utcnow() met = pytz.timezone("Europe/Berlin") def current_time(): @@ -29,7 +29,7 @@ def send(data): print >>sys.stderr, "SENT >>> ", data def send_clock(now, ts): - day = (now.date() - date(2015, 9, 10)).days + day = (now.date() - date(2015, 9, 11)).days since_midnight = ( now - now.replace(hour=0, minute=0, second=0, microsecond=0)