Projet

Général

Profil

Révision ed9a13f1

Ajouté par Assos Assos il y a plus de 3 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/feeds/mappers/date.inc
78 78
    }
79 79
    else {
80 80
      if (!isset($field[$language][$delta]['timezone'])) {
81
        $field[$language][$delta]['timezone'] = $value->getTimezone()->getName();
81
        $timezone = $value->getTimezone()->getName();
82
        if ($timezone == 'Z') {
83
          // PHP < 5.5.10 doesn't know about the Zulu time zone (which equals
84
          // the UTC time zone). Set timezone to "UTC".
85
          $timezone = 'UTC';
86
        }
87
        $field[$language][$delta]['timezone'] = $timezone;
82 88
      }
83 89

  
84 90
      $value->setTimezone($db_tz);

Formats disponibles : Unified diff