Date Range not returning correct TIME in Twig; end_value not returning anything

Created on 12 May 2021, over 3 years ago
Updated 15 January 2024, 12 months ago

Problem/Motivation

Using twig inside a view in order to get the time of a DateTime Range field like:
{% set myStartTime = field_event_start.value|date("H:i:s", "UTC") %}
does return the time of now() instead the time of the field_event_start.

While {% set myStartDate = field_event_zeitpunkt.value|date("Y-m-d", "UTC") %} gives the correct date of the field.

end_value: {% set myStartDate = field_event_zeitpunkt.end_value|date("Y-m-d", "UTC") %} does not return anything at all.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

9.5

Component
DatetimeΒ  β†’

Last updated 6 days ago

Created by

πŸ‡¦πŸ‡ΉAustria maxilein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024