08-21-2016, 09:45 AM
Hi! I have a model that looks like this:
Now, when I'm saving it's instances the created_at and updated_at values are set properly, eg: 2016-08-21 13:13:57.585472+02. collection_from value should be nearly the same as those two previous ones, but it's getting set to point to the next day, eg: 2016-08-22 01:00:00+02 which I don't get at all. The collection_from value looks like that when sent by the browser: 2016-08-21 23:00. I believe I have proper settings set up in the settings.py file:
So what's the problem here? How do I make Django save collection_from value the same way as created_at or updated_at?
Hidden Content
Now, when I'm saving it's instances the created_at and updated_at values are set properly, eg: 2016-08-21 13:13:57.585472+02. collection_from value should be nearly the same as those two previous ones, but it's getting set to point to the next day, eg: 2016-08-22 01:00:00+02 which I don't get at all. The collection_from value looks like that when sent by the browser: 2016-08-21 23:00. I believe I have proper settings set up in the settings.py file:
Hidden Content
So what's the problem here? How do I make Django save collection_from value the same way as created_at or updated_at?