[P1] Fix timezone issue with birthday on dashboard (#82) #96
Labels
No labels
architecture
backend
bug
ci
config
database
docker
documentation
duplicate
enhancement
frontend
help wanted
invalid
issue-25
issue-26
issue-42
issue-65
issue-67
issue-82
migrations
p0-critical
p1-high
p2-medium
p3-low
performance
quality
question
security
state-management
testing
timezone
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
fastie81/honbu-manager#96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Issue #82 "Time zone issue with birthday on dashboard" - birthdays show wrong day due to UTC vs local timezone.
Root Cause
date_of_birthstored as DATE (no timezone) in PostgreSQLnew Date("1990-07-15")parses as UTC midnightExpected Behavior
Birthdays should display correctly in user's local timezone.
Fix Options
new Date(dateString + 'T00:00000:00')or usedateString.split('-')to construct local Datetimezonefield to user profileRecommended Fix (Frontend)
Related Files
app/core/entities/models.py(Member model date_of_birth field)frontend/src/pages/dashboard/(birthday display)frontend/src/contexts/AuthContext.tsx(user profile with timezone?)