Skip to content

feat: Display and edit dates in the browser's local time zone#3387

Open
dblythy wants to merge 1 commit into
parse-community:alphafrom
dblythy:feat/482-local-timezone
Open

feat: Display and edit dates in the browser's local time zone#3387
dblythy wants to merge 1 commit into
parse-community:alphafrom
dblythy:feat/482-local-timezone

Conversation

@dblythy

@dblythy dblythy commented Jul 5, 2026

Copy link
Copy Markdown
Member

Issue

Closes #482

Approach

Adds a per-app useLocalTime config flag. When enabled, dates in the data browser (and other date displays) are shown and edited in the viewer's browser time zone instead of UTC. Dates are always stored in UTC; editing is WYSIWYG, so the local wall-clock you type or pick is converted to UTC on save. The default is unchanged (UTC).

This generalizes the existing binary local/UTC handling (already used for Push scheduling) via dateStringUTC(date, useLocalTime) plus shared dateInputString/parseDateInput helpers in lib/DateUtils, with no new dependency.

  • Scope: data browser (display, inline edit, edit-row dialog, date filter), plus job status/scheduling, config history, and cert/key expiry displays.
  • Out of scope: Push scheduling (keeps its own local_time toggle) and the Analytics chart's separate date handling.
  • Supersedes the display-only POC Timezone configuration #914, which was closed in 2016 before this was a wanted feature.

Display: same rows and server, viewed as UTC vs local

Test browser zone: Australia/Sydney (GMT+11 AEDT / GMT+10 AEST). 13:45:30 UTC0:45:30 GMT+11 (day rolls over); 21:00 UTC7:00 GMT+10; DST is resolved per date.

useLocalTime unset (UTC, unchanged) useLocalTime: true (browser local)
UTC display Local display

Editing is WYSIWYG: edit in local, store in UTC

Editing the Morning row in the local app. The inline editor shows the local wall-clock (2020-01-16T00:45:30), changed here to 09:00:

Edit in local

Committed, so the cell shows 16 Jan 2020, 9:00:00 GMT+11:

Committed local

Stored as UTC (the same instant): the UTC app shows 15 Jan 2020, 22:00:00 UTC (raw REST value 2020-01-15T22:00:00.000Z). In the UTC app, typed input without a Z is still interpreted as UTC, so the default behavior is unchanged.

Stored as UTC

Tasks

  • Add tests
  • Add changes to documentation (guides, repository pages, in-code descriptions)

@parse-github-assistant

Copy link
Copy Markdown

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant Bot changed the title feat: display and edit dates in the browser's local time zone feat: Display and edit dates in the browser's local time zone Jul 5, 2026
@parse-github-assistant

Copy link
Copy Markdown

🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review.

Tip

  • Keep pull requests small. Large PRs will be rejected. Break complex features into smaller, incremental PRs.
  • Use Test Driven Development. Write failing tests before implementing functionality. Ensure tests pass.
  • Group code into logical blocks. Add a short comment before each block to explain its purpose.
  • We offer conceptual guidance. Coding is up to you. PRs must be merge-ready for human review.
  • Our review focuses on concept, not quality. PRs with code issues will be rejected. Use an AI agent.
  • Human review time is precious. Avoid review ping-pong. Inspect and test your AI-generated code.

Note

Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect.

Caution

Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code.

@coderabbitai

coderabbitai Bot commented Jul 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 10 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 62415062-4ed3-4ca7-9bb1-daf3f2116e29

📥 Commits

Reviewing files that changed from the base of the PR and between 9db24be and bb1757f.

📒 Files selected for processing (20)
  • README.md
  • src/components/BrowserCell/BrowserCell.react.js
  • src/components/BrowserFilter/BrowserFilter.react.js
  • src/components/BrowserFilter/FilterRow.react.js
  • src/components/DateTimeEditor/DateTimeEditor.react.js
  • src/components/DateTimeEntry/DateTimeEntry.react.js
  • src/components/PushCerts/CertsTable.react.js
  • src/dashboard/Account/AccountOverview.react.js
  • src/dashboard/Data/Browser/BrowserTable.react.js
  • src/dashboard/Data/Browser/DataBrowser.react.js
  • src/dashboard/Data/Browser/EditRowDialog.react.js
  • src/dashboard/Data/Browser/Editor.react.js
  • src/dashboard/Data/Config/ConfigDialog.react.js
  • src/dashboard/Data/Jobs/Jobs.react.js
  • src/dashboard/Data/Jobs/JobsForm.react.js
  • src/dashboard/Settings/AppleCerts.react.js
  • src/lib/DateUtils.js
  • src/lib/ParseApp.js
  • src/lib/tests/DateUtils.test.js
  • testing/preprocessor.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

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.

Time zone support

1 participant