Skip to content

Typing j goes back two days instead of one #1146

Closed

Description

@tyler-dane

Where did this happen?

Local code with an up-to-date main branch, Hosted (app.compasscalendar.com)

Expected Behavior

Given it's 5pm CST on Oct 20, 2025
When the user goes to the /day view
Then they see Monday and October 20 in the headings
And when they type the j shortcut
Then they see Sunday and October 19 in the headers

Current Behavior

Given it's 5pm CST on Oct 20, 2025
When the user goes to the /day view
Then they see Monday and October 20 in the headings
And when they type the j shortcut
Then they see Saturday and October 18 in the headers

Steps to Reproduce

  1. Go to /day
  2. Type j or click the back button on the day view
  3. Look at headings

Possible Solution

Make sure the headings and navigation are determined based on the user's locale. However, save the data in localstorage as UTC

Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    webFrontend/web related issue

    Type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions