question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Day.JS TimeZone SetDefault Bug

See original GitHub issue

Describe the bug tz.setDefault() doesn’t set timezone when starting bot and displays wrong time when using.

Expected behavior I expected correct operation, after entering the time it was supposed to be displayed in the custom default time zone.

Information

  • Day.js Version: 1.9.7
  • OS: Ubuntu
  • Browser: Node.JS app, not browser
  • Time zone: GMT +01:00 Europe/Warsaw

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:15

github_iconTop GitHub Comments

4reactions
nnmercommented, Feb 18, 2021

version 1.10.4 has same issue

0reactions
KonstantinZhukovskijcommented, Nov 30, 2021

@iamkun any news here? I’v got the same

Read more comments on GitHub >

github_iconTop Results From Across the Web

dayjs.tz.setDefault bug - CodeSandbox
VS Code's tsserver was deleted by another application such as a misbehaving virus detection tool. Please reinstall VS Code. Manage Extension.
Read more >
Set Default Timezone
Change default timezone from local time zone to your custom timezone. You can still custom a different timezone in a specific dayjs object....
Read more >
dayjs() is in the wrong timezone - javascript - Stack Overflow
Simply using the utc plugin without the timezone plugin somehow had the desired effect. import utc from 'dayjs/plugin/utc'; day.extend(utc); ...
Read more >
day.js default timezone problem #1227 - Issuehunt
I am having trouble in the following scenario: When I set the default timezone, using dayjs.tz.setDefault("America/New_York") and then create new object ...
Read more >
CHANGELOG.md | dayjs@v1.11.3 - Deno
Day.js 2kB immutable date-time library alternative to Moment.js with the same ... milliseconds bug (#1042) (fe2301b); Timezone plugin set default timezone ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found