globalizejs / globalizejs/globalize

Cannot get timezone names or the abbreviations from globalizer

Open
#933 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.8k
Forks
585
PR merge metrics
No merged PRs in 30d

Description

Hi,

Is there any way to get timezone names and abbreviations from the globalize library? As per the comment - [https://github.com/globalizejs/globalize/issues/673#issuecomment-309430240] globalize support this.

Current values returned by executing the above statements are as follows.

Globalize.dateFormatter({ datetime: "full", timeZone: "Europe/Berlin" })( new Date() )
> 'Wednesday, October 5, 2022 at 4:16:54 PM GMT+02:00'
// Expected to return "Monday, November 1, 2010 at 8:55:00 PM Central European Standard Time"

Globalize.dateFormatter({ raw: 'z', timeZone: "Europe/Berlin" })( new Date() )
> 'GMT+2'
//Expected to return "EST"

Is this a bug and any plans to fix these?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.