Skip to content

Conversation

Sesuraj-git
Copy link

@Sesuraj-git Sesuraj-git commented Jun 26, 2025

fix: preserve local date when parsing time strings with default timezone

Fixes #874, #867, #807

Previously, parsing time-only strings like "T22:00" in a context with
tz.setDefault("Asia/Kolkata") would incorrectly use the UTC date
and shift the local day. This patch uses the original tz parsing
to ensure the correct local date and time are preserved.

Also includes a test case to confirm behavior.

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.

defaulting to current date-time uses UTC (ignores timezone)
1 participant