Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291667

Anonymous user object in twig has null timezone. Expected site default timezone.

$
0
0

Problem/Motivation

When formatting datetime in twig and printing the timezone

{{ datetime|date('g:i A T') }}

An anonymous user has a null timezone and therefore twig timezone conversion gives unexpected results.

Proposed resolution

The default timezone for anonymous users should be the site's default timezone.

Remaining tasks

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 291667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>