Skip to content

Conversation

@Ayo1984
Copy link
Contributor

@Ayo1984 Ayo1984 commented Oct 29, 2025

When parsing UTC timestamps (e.g. containing Z or +00:00) while a default timezone is set, Day.js currently reapplies the default timezone offset, resulting in incorrect conversions.

This PR updates the timezone plugin to correctly detect UTC input and preserve its UTC value instead of re-offsetting.

Resolves #2946

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

Successfully merging this pull request may close these issues.

dayjs.tz parses ISO string as local time instead of UTC

2 participants