[snowy: 6/8] Return new UTC date format to API clients



commit 366c2f2d18c257f33871e83e8e644235e5649d7b
Author: Leon Handreke <leon handreke gmail com>
Date:   Fri Feb 19 19:34:04 2010 +0100

    Return new UTC date format to API clients

 api/handlers.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/api/handlers.py b/api/handlers.py
index 1ce4f13..68da988 100644
--- a/api/handlers.py
+++ b/api/handlers.py
@@ -202,9 +202,7 @@ class NoteHandler(BaseHandler):
 
 def describe_note(note):
     def local_iso(date):
-        return date.replace(tzinfo=pytz.utc).isoformat()
-        #TODO: Return new format below for newer clients
-        #return date.replace(tzinfo=pytz.utc).strftime('%Y-%m-%dT%H:%M:%SZ')
+        return date.replace(tzinfo=pytz.utc).strftime('%Y-%m-%dT%H:%M:%SZ')
 
     return {
         'guid': note.guid,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]