We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
import dayjs from "dayjs"; import utc from "dayjs/plugin/utc"; import timezone from "dayjs/plugin/timezone"; import "dayjs/locale/ja";
dayjs.extend(utc); dayjs.extend(timezone); dayjs.tz.setDefault("Asia/Tokyo"); const d1 = dayjs.tz("2024-03-31 00:00", "Asia/Tokyo"); const d2 = dayjs.tz("2024-03-31 01:00", "Asia/Tokyo"); const d3 = dayjs.tz("2024-03-31 02:00", "Asia/Tokyo"); console.log(d1.format("YYYY/MM/DD HH:mm")); console.log(d2.format("YYYY/MM/DD HH:mm")); console.log(d3.format("YYYY/MM/DD HH:mm"));
When the time zone is set as follows, 1 o'clock is skipped due to the influence of the local time zone.
Expected behavior 2024/03/31 00:00 2024/03/31 01:00 2024/03/31 00:00
expect the output result value as above, but the following value comes out.
2024/03/31 00:00 2024/03/31 02:00 2024/03/31 03:00
Information
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
import timezone from "dayjs/plugin/timezone";
import "dayjs/locale/ja";
When the time zone is set as follows, 1 o'clock is skipped due to the influence of the local time zone.
Expected behavior
2024/03/31 00:00
2024/03/31 01:00
2024/03/31 00:00
expect the output result value as above, but the following value comes out.
2024/03/31 00:00
2024/03/31 02:00
2024/03/31 03:00
Information
The text was updated successfully, but these errors were encountered: