Skip to content

Fix: timezone handling in sidebar component#5015

Merged
lastzero merged 1 commit intodevelopfrom
fix-timezone-sidebar
Jun 19, 2025
Merged

Fix: timezone handling in sidebar component#5015
lastzero merged 1 commit intodevelopfrom
fix-timezone-sidebar

Conversation

@omerdduran
Copy link
Copy Markdown
Collaborator

@omerdduran omerdduran commented May 19, 2025

The backend stores the TakenAtLocal value as the local time of the specified timezone, like Berlin's time for Europe/Berlin. If we interpret TakenAtLocal with the timezone (DateTime.fromISO(time, {zone: timezone})), it results in a double time offset. To fix this, we should interpret TakenAtLocal as UTC to avoid time shifts, add timezone information only for display (using keepLocalTime: true), and thus preserve the correct local time while showing the timezone.

Related Issues:

@lastzero
Copy link
Copy Markdown
Member

Thank you very much! I'll merge this for further testing πŸ‘

@lastzero lastzero merged commit 985e2fe into develop Jun 19, 2025
2 checks passed
@lastzero lastzero added bug Something isn't working frontend Requires experience with HTML/JS/CSS merged Changes are merged, but may require further testing labels Jun 19, 2025
@lastzero lastzero moved this to Development 🐝 in Roadmap πŸš€βœ¨ Jun 19, 2025
@lastzero lastzero assigned graciousgrey and unassigned omerdduran Jun 19, 2025
@lastzero lastzero added the please-test Ready for acceptance test label Jun 19, 2025
@graciousgrey graciousgrey moved this from Development 🐝 to Test πŸ•΅ in Roadmap πŸš€βœ¨ Jun 23, 2025
@lastzero lastzero moved this from Test πŸ•΅ to Preview 🐳 in Roadmap πŸš€βœ¨ Jun 24, 2025
@omerdduran omerdduran deleted the fix-timezone-sidebar branch June 25, 2025 00:02
@graciousgrey graciousgrey added tested Changes have been tested successfully and removed please-test Ready for acceptance test labels Jun 25, 2025
@lastzero lastzero moved this from Preview 🐳 to Release 🌈 in Roadmap πŸš€βœ¨ Jul 7, 2025
@lastzero lastzero moved this from Release 🌈 to Development 🐝 in Roadmap πŸš€βœ¨ Jul 7, 2025
@lastzero lastzero moved this from Development 🐝 to Release 🌈 in Roadmap πŸš€βœ¨ Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Requires experience with HTML/JS/CSS merged Changes are merged, but may require further testing tested Changes have been tested successfully

Projects

Status: Release 🌈

Development

Successfully merging this pull request may close these issues.

3 participants