Skip to content

fix: display booking times in IST instead of UTC in emails and notifi…#21

Open
kannanCodes wants to merge 1 commit into
mainfrom
fix/email-booking-time-timezone-ist
Open

fix: display booking times in IST instead of UTC in emails and notifi…#21
kannanCodes wants to merge 1 commit into
mainfrom
fix/email-booking-time-timezone-ist

Conversation

@kannanCodes

Copy link
Copy Markdown
Owner

…cations

  • Replace hardcoded timeZone: UTC with Asia/Kolkata in sendBookingConfirmation and sendBookingCancelled (email.service.ts)
  • Replace bare date-fns format() calls (server-local timezone) with Intl toLocaleString IST-aware formatting in mentor-booking.service.ts
  • Append IST label to all user-facing date strings for clarity
  • Remove unused format import from date-fns

Fixes booking confirmation and cancellation emails showing wrong time (e.g. 3:30 AM instead of 9:00 AM IST for IST-scheduled sessions)

…cations

- Replace hardcoded timeZone: UTC with Asia/Kolkata in
  sendBookingConfirmation and sendBookingCancelled (email.service.ts)
- Replace bare date-fns format() calls (server-local timezone) with
  Intl toLocaleString IST-aware formatting in mentor-booking.service.ts
- Append IST label to all user-facing date strings for clarity
- Remove unused `format` import from date-fns

Fixes booking confirmation and cancellation emails showing wrong time
(e.g. 3:30 AM instead of 9:00 AM IST for IST-scheduled sessions)
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.

1 participant