Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX failing queries on datetime fields set to 1970-01-01 00:00:00 via (int) 0 #2011

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hsegnitz
Copy link
Contributor

The Problem was the not-type-safe null-check in the PropelDateTime util class.
Passing an Integer 0 (that e.g. comes from the SplFileInfo::getMtime()) to the setter of the field, results in the 0 being interpreted as null, thus the update/insert query is failing.

FIxes #2010

@hsegnitz
Copy link
Contributor Author

Hmmm... I'm afraid I might need some help with the failing CI tests, to me that looks unrelated to my change and more like some init failure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant