Don't use language specific date formats for start and end date, because the strtotime does not support other language than English. i.e. in simpleads.module there's a simpleads_node_presave function. Inside this, there's this code:

    if ($start_time != 0) {
      $node->field_ad_start_date[$node->language][0]['value'] = format_date($start_time, 'custom', 'm/d/Y h:i a');
    }
    if ($end_time != 0) {
      $node->field_ad_end_date[$node->language][0]['value'] = format_date($end_time, 'custom', 'm/d/Y h:i a');
    }

Use instead of this something like this:

    if ($start_time != 0) {
      $node->field_ad_start_date[$node->language][0]['value'] = format_date($start_time, 'custom', 'm/d/Y H:i');
    }
    if ($end_time != 0) {
      $node->field_ad_end_date[$node->language][0]['value'] = format_date($end_time, 'custom', 'm/d/Y H:i');
    }

Use 24 hour format and don't use any variable/attribute which will generate text, because on other languege i.e. on hungarian server it will return hungarian string (am -> de, pm -> du) and when you feed back into the strtotime it will return FALSE, because strtotime speaks just English.

This issue block all the non-english based sites.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

golddragon007 created an issue. See original summary.

minnur’s picture

Status: Active » Closed (won't fix)