Hi All,
Sorry to bother you but I have issue with datetimefield as below:
I’m using datetimefield with default value “auto_now_add”. But when I check it’s value in postgresql time value is always 00:00:00. So I start to think of I’m missing someting in modal definition.
Model:
start_date=models.DateTimeField(auto_now_add=True, blank=True,null=True )
Value in db:
"2024-05-15 00:00:00+00"
I have also tried to add minutes to datetime.now() but in db it did not get reflected. Time is ignored by default.
I wonder why this is happening. Am I missing something?