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

css - Text drops down with smaller window -

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

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -