Commit df2aed92 authored by Romain Courteaud's avatar Romain Courteaud

Comment about date format

parent 43d944f1
...@@ -18,6 +18,8 @@ class LogDB: ...@@ -18,6 +18,8 @@ class LogDB:
# All other tables point to it to be able to group some info # All other tables point to it to be able to group some info
class Status(BaseModel): class Status(BaseModel):
text = peewee.TextField() text = peewee.TextField()
# date is in UTC
# https://www.sqlite.org/lang_datefunc.html
timestamp = peewee.TimestampField( timestamp = peewee.TimestampField(
constraints=[peewee.SQL("DEFAULT now")] constraints=[peewee.SQL("DEFAULT now")]
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment