Commits

Ben Bangert committed bab180b

Use appropriate datetime now func

  • Participants
  • Parent commits 1572dda

Comments (0)

Files changed (1)

File kai/model/snippet.py

     type = TextField(default='Snippet')
     human_id = TextField()
     displayname = TextField()
-    created = DateTimeField(default=datetime.now)
+    created = DateTimeField(default=datetime.utcnow)
     title = TextField()
     description = TextField()
     content = TextField()
                              'amount':row.value},
         group=True)
     
-    by_author
-    
     by_author_id = View('snippets', '''
         function(doc) {
           if (doc.type == 'Snippet' && doc.human_id) {