Projet

Général

Profil

Révision 6eb8d15f

Ajouté par Assos Assos il y a presque 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/modules/profile/views_handler_field_profile_date.inc
51 51

  
52 52
    // But we *can* deal with non-year stuff:
53 53
    $date = gmmktime(0, 0, 0, $value['month'], $value['day'], $value['year']);
54

  
54 55
    $replace = array(
55 56
      // day
56 57
      'd' => sprintf('%02d', $value['day']),
57 58
      'D' => NULL,
58 59
      'l' => NULL,
59 60
      'N' => NULL,
60
      'S' => date('S', $date),
61
      'S' => gmdate('S', $date),
61 62
      'w' => NULL,
62 63
      'j' => $value['day'],
63 64
      // month
64
      'F' => date('F', $date),
65
      'F' => gmdate('F', $date),
65 66
      'm' => sprintf('%02d', $value['month']),
66
      'M' => date('M', $date),
67
      'n' => date('n', $date),
67
      'M' => gmdate('M', $date),
68
      'n' => gmdate('n', $date),
68 69

  
69 70
      'Y' => $value['year'],
70 71
      'y' => substr($value['year'], 2, 2),

Formats disponibles : Unified diff