You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
459B

  1. {# {{ value|date('U')}} #}
  2. {% if value is not null %}
  3. {% if field_options is not defined or field_options.format == "d/m/Y h:i A e" or field_options.format == null %}
  4. {% set format = "d/m/Y H:i" %}
  5. {% else %}
  6. {% set format = field_options.format %}
  7. {% endif %}
  8. <time data-timestamp="{{ value|date('U') }}" title="{{ value|date('r') }}">{{ value|date(format) }}</time>
  9. {% else %}
  10. <span class="badge badge-secondary">Non défini</span>
  11. {% endif %}