Skip to content

Include the time zone in CP timestamps#18639

Open
brandonkelly wants to merge 1 commit into5.10from
feature/show-time-zones
Open

Include the time zone in CP timestamps#18639
brandonkelly wants to merge 1 commit into5.10from
feature/show-time-zones

Conversation

@brandonkelly
Copy link
Copy Markdown
Member

Description

Appends a time zone abbreviation to most formatted dates throughout the control panel, e.g. within element metadata tables and element indexes.

A user’s “Created at”, “Last login”, and ”Updated at” timestamps, within the user’s metadata table, showing that each timestamp includes “PDT” at the end.

Under the hood, new showTimeZone arguments have been added to Formatter::asTime() and Formatter::asDateTime(), as well as the |datetime and |time Twig filters. When true is passed, the inferred time zone’s abbreviation will be appended to the result, like above.

Related issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant