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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -