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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -