Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

dateFilter uses locale timezone offset for "Z" even when UTC timezone is specified #9359

Closed
@niallsmart

Description

@niallsmart

I would expect the following expression to be a no-op:

{{ '2012-01-01T00:00:00Z' | date:'yyyy-MM-ddTHH:mm:ssZ':'UTC' }}

However, the "Z" format specifier always uses the locale timezone offset – i.e., ignores the timezone specified to the filter – so in my browser this evaluates to:

2012-01-01T00:00:00-0500

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions