Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dayjs('2023-01-05 03:45:00').tz('Africa/Accra', true).format('YYYY-MM-DDTHH:mm:ss.SSSZZ') #2191

Open
jiememe2021 opened this issue Jan 5, 2023 · 2 comments

Comments

@jiememe2021
Copy link

Describe the bug
The time will change after setting the time format of the time zone offset 0

Expected behavior
time does not change

Information

  • Day.js Version [e.g. v1.11.7]
  • OS: [e.g. iOS]
  • Browser [e.g. chrome 108]
  • Time zone: [e.g. GMT-00:00 DST (Pacific Daylight Time)]
@BePo65
Copy link
Contributor

BePo65 commented Jan 8, 2023

I don't really understand, what your problem is. It would be better, if the title has a short summary of your topic and a few code lines in the description that show what you get and what the resulting value should be. This way it is easier to reproduce the topic of your issue.

Anyway; as the mentioned timezone has an utcOffset of '0' I suppose this is a GMT topic as e.g. in issue #2037 and solved in pr #2118.

@KronosDev-Pro
Copy link

KronosDev-Pro commented Jan 13, 2023

Hi @jiememe2021👋

same as @BePo65, I don't understand your 'bug'.

Maybe this is another issue, will help you:

Hopefully this will solve your question, if so, don't forget to close this issue 😉

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

No branches or pull requests

3 participants