If a user (like me) makes a date CCK field based on strtotime, and then enters 2/1/2008, it appears no date is stored.

This is because the strtotime is expecting something like 2/1/2008 6:00pm, if I put in that full time function it is stored -- should consider adding some validation on this field to make sure strtotime is not returning false before proceeding.

Thanks

Comments

karens’s picture

Status: Active » Closed (duplicate)

There's another issue somewhere about trying to use strtotime as a backup validation method if the date doesn't work, but it was problematic because it can have the effect of silently saving bad information to the database. Whatever work will be done on this will happen in the existing issue that has a patch.