use format_date
authorChristophe Benz <cbenz@easter-eggs.com>
Mon, 19 Jan 2009 16:25:05 +0000 (17:25 +0100)
committerChristophe Benz <cbenz@easter-eggs.com>
Mon, 19 Jan 2009 16:25:05 +0000 (17:25 +0100)
lib/widget/eeWidgetFormDateVlaDatePicker.class.php

index 6f487bf..fca4031 100644 (file)
@@ -47,7 +47,8 @@ class eeWidgetFormDateVlaDatePicker extends sfWidgetForm
   {
     $input = new sfWidgetFormInput(array(), array('autocomplete' => 'off'));
 
   {
     $input = new sfWidgetFormInput(array(), array('autocomplete' => 'off'));
 
-    $html = $input->render($name, $value);
+    sfContext::getInstance()->getConfiguration()->loadHelpers('Date');
+    $html = $input->render($name, format_date($value));
 
     $id = $input->generateId($name);
     $monday_option = $this->getOption('start_monday');
 
     $id = $input->generateId($name);
     $monday_option = $this->getOption('start_monday');