Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 513 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving Django model with DateTime fields

#1
Hi! I have a model that looks like this:

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this 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
You must

[To see links please register here]

or

[To see links please register here]

to view this 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?
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through