In a node template, if I use the following:
{{ content.field_event_start_date }}
The correct localized date and time will be displayed. For example:
Tuesday, February 14, 2017 @ 9:00am EDT
However, if I only want to display the time part and use the following:
{{ node.field_event_start_date.value|date("g:ia") }}
The incorrect time is displayed:
1:00pm
There appears to be a +4h offset when using the TWIG date() filter.
Drupal's Timezone is set to "America/New York".
How can I display only the time part so that it correctly displays the following?
9:00am
Also, can you please explain what conversion Drupal is performing on the time under the covers?
Thank you.