Skip to content

fix: correct unavailable hours timezone mismatch#17

Draft
anton-patrushev wants to merge 1 commit into
fix/android-now-line-visibilityfrom
fix/unavailable-hours-timezone-mismatch
Draft

fix: correct unavailable hours timezone mismatch#17
anton-patrushev wants to merge 1 commit into
fix/android-now-line-visibilityfrom
fix/unavailable-hours-timezone-mismatch

Conversation

@anton-patrushev

Copy link
Copy Markdown
Owner

Summary

  • Fix date shifting bug in UnavailableHoursProvider when device and business timezones differ
  • Date millis from prepareCalendarRange are device-TZ midnight values; interpreting them directly in business TZ could shift the date by ±1 day
  • Extract ISO date in device TZ first, then build the unavailable hours range in business TZ to match visibleDatesArray keys

Test plan

  • Verify unavailable hours render on the correct day when device TZ differs from business TZ (e.g. device in UTC+5, business in UTC-5)
  • Verify no regression when device TZ matches business TZ

🤖 Generated with Claude Code

  Date millis from prepareCalendarRange are device-TZ midnight values.
  Parsing them directly in business TZ could shift the date by ±1 day
  when device and business timezones differ. Extract the ISO date in
  device TZ first, then build the range in business TZ to match calendar
  column keys.
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