Is it a bad idea to store a unix time stamp as an integer and simply convert it to datetime when needed in Django ?
I found the UnixDateTimeField
field from the django-unixdatetimefield package, but I don't see the benefit. You can also override the pre_save
method on the DateTimeField
but it adds unecssary complexity.
the above mentioned methods are found at this link: django - make datetimefield accept unix timestamp