Did anybody had this problem too?
in SF_ROOT_DIR/lib/symfony/i18n/sfDateFormat.class.php:
Impossible to parse date "12/05/69" with format "yyyy-MM-dd HH:mm:ss"
My findings:
in _list_td_tabular.php I got this line :
<td><?php echo ($teilnehmer->getGeburtstag() !== null &&
$teilnehmer->getGeburtstag() !== '') ?
format_date($teilnehmer->getGeburtstag(), "dd.MM.yyyy") : '' ?></td>
If I use getGeburtstag(null), I get back a timestamp and everything
goes well again.
<td><?php echo ($teilnehmer->getGeburtstag() !== null &&
$teilnehmer->getGeburtstag() !== '') ?
format_date($teilnehmer->getGeburtstag(null), "dd.MM.yyyy") : ''
?></td>
The above line could be reduced, if the following patch is used:
--- lib/symfony/i18n/sfDateFormat.class.php (Revision 3078)
+++ lib/symfony/i18n/sfDateFormat.class.php (Arbeitskopie)
@@ -118,6 +118,9 @@
public function getDate($time, $pattern = null)
{
// if the type is not a php timestamp
+ if(is_null($time))
+ return null;
+
if (is_string($time))
{
if (!$pattern)
Ticket needed?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---