symfony1 - error in sfWidgetFormDate() -
i have date field in mysql table value '0000-00-00'. when using sfwidgetformdate() display value on webform, somehow defaults november 30 empty year. ideas happening? thanks
the sfwidgetformdate()
uses strtotime()
convert value date. according comments on php.net strtotime manual function generates different output "zero" value on different systems , php versions (one of values in fact 30th nov, year -1).
maybe should check value before passing widget , change null
.
Comments
Post a Comment