Skip to content

ui/schedules: Incorrect Schedule Shifts Headers  #3496

@tony-tvu

Description

@tony-tvu

Describe the Bug:
The headers on the schedule shifts page are using the schedule's timezone instead of the user's local timezone. "Today..." and "Tomorrow..." headers will be incorrect for users/schedules on differing timezones. (see screenshot)

Steps to Reproduce:

  1. Go to Schedules (must be using a different timezone than local)
  2. Click on Shifts
  3. See error

Expected Behavior:
The shift headers should be using the user's local timezone.

Observed Behavior:
For users with CST local TZ and schedules on Asia/Kolkata TZ (GMT+5:30), the user's shift headers will be ahead by 11 hours and 30 minutes.

Screenshots/Stack Traces:
Screenshot 2023-11-29 at 5 03 32 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions