From e2d7af540a8b092eb333f3baf80d70ac0ff8af5f Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Fri, 28 Jun 2013 15:57:16 +0530 Subject: [PATCH] Date time stamp in now UTC --- sweetmaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sweetmaker.py b/sweetmaker.py index ce053aa..262661b 100644 --- a/sweetmaker.py +++ b/sweetmaker.py @@ -30,7 +30,7 @@ def makeSweet(sweet_list): for sweet in sweet_list: if len(sweet['who']) and len(sweet['what']) and len(sweet['where'])\ and len(sweet['how']): - sweet['created'] = datetime.now().strftime(TIMESTAMP_FORMAT) + sweet['created'] = datetime.utcnow().strftime(TIMESTAMP_FORMAT) else: return False return sweet_list -- 1.7.10.4