You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I introduced this bug but since I restarted my server during development after every edit I never saw the issue.
Currently the default for Entry pub_time is
default=datetime.datetime.now().time
which is wrong. since now() is being called during instantiation. And the model uses that time for all new instances created.The time is over the place because on apache processes are being created and destroyed
This line should be
default=datetime.datetime.now
As long as the default is a function, it will be called for every new instance.
This is is a pretty problematic bug on the Times now. Sorry for introducing it. Its a one line change, let me know if you need me to make the change and do a pull request.
thanks
Dave
The text was updated successfully, but these errors were encountered:
I introduced this bug but since I restarted my server during development after every edit I never saw the issue.
Currently the default for Entry pub_time is
default=datetime.datetime.now().time
which is wrong. since now() is being called during instantiation. And the model uses that time for all new instances created.The time is over the place because on apache processes are being created and destroyed
This line should be
default=datetime.datetime.now
As long as the default is a function, it will be called for every new instance.
This is is a pretty problematic bug on the Times now. Sorry for introducing it. Its a one line change, let me know if you need me to make the change and do a pull request.
thanks
Dave
The text was updated successfully, but these errors were encountered: