iamkun / iamkun/dayjs

Abbreviated named offset for timezone i.e "z" (small z) is not working.

Open
#2,528 5 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
In the advance Formatting options the small 'z' is used to show the "Abbriviated named offset" like - IST for Indian Standard Time. But, this is not working.

**Expected behavior**
Using small z in format shows abbriviated named offset like IST, EST

**Information**
- Day.js Version 1.11.0
- OS: Ubuntu 22.04
- Browser Chrome 120.0.6099.109
- Time zone: GMT + 5:30 (Indian Standard Time)

Here you can see the issue in the screenshot :
![Screenshot from 2023-12-13 13-28-49](https://github.com/iamkun/dayjs/assets/151901461/c4c4329c-a5c9-4829-a699-ac9ff24bcb3c)

Here is the codesandbox : https://codesandbox.io/s/thirsty-lamport-d8q96x?file=/src/App.js

Contributor guide

Open the contributing guide

Research direction

Begin with the linked CodeSandbox and search the repository for the `z` format token and existing timezone-formatting tests. Compare the current result with the Advanced Formatting expectation; done means small `z` produces the abbreviated named offset for the supplied timezone examples and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.