Hello,

I have added a date_popup field in a form :

$format = 'j M Y - H:i';

$form['contact_date'] = array(
    '#type' => 'date_popup',
    '#date_format' => $format,
    '#default_value' => 'now',
    '#date_timezone' => 'Europe/Paris',
    '#date_year_range' => '0:+2',
    '#date_label_position' => 'above',
    '#title' => t('Quand souhaitez-vous être appelé ?'),
    '#date_increment' => 5,
    '#required' => FALSE,
    '#weight' => 1,
  );

The site defaut language is French.
When the field is displayed first, the month is not translated (21 apr 2010).
If the user selects a date with the date picker, the month is translated OK (21 avr 2010).
How can I get the default value translated when the form is displayed first ?

Thank you,
Frederic

Comments

DamienMcKenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.