feat(dateTimes): multiple timezones epic#9081
Merged
Conversation
…a-2585-datetime-foundation
Introduce withDateTimeContext HOC and useDateTimeFormat hook for PDF components to ensure consistent timezone-aware date formatting across all printouts. - Add formatInTz utility for explicit format string patterns - Create self-contained PDF date context to avoid React instance conflicts - Migrate all printout components from getDisplayDate to context-based formatters - Update patientAccessors and labRequestAccessors to accept formatters - Replace time-only formats with formatTime where applicable
…-pdf-timezone-formatting
Integrate DateTimeContext from ui-components across all web components. Changes: - Add DateTimeProvider wrapper in Root.jsx - Update all date display components to use useDateTimeFormat hook - Migrate from direct date-fns calls to context-based formatters - Update forms, views, and tables for consistent timezone handling
…ocationBookingDrawer.jsx Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…a-2585-datetime-foundation
…-pdf-timezone-formatting
…-web-datetime-adoption
…9239) * we making it a datetime field * last bit * ya
* nice wit it * ibiza tweakin * ya * ya * ya * Update packages/web/app/components/Surveys/getComponentForQuestionType.jsx Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * thank u ai for everything * wa * ok * ok * wa * thats correcT * stone cold gotem * thanks agian --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…9246) * thanks agian * yeah nice * yeah nice * last spot * ya ok * ya * ya * ya
…timezone internally (#9188) * upgrade mui datefields * dam it works * dam it works * perfect * yayer * yayer * cleaner * looks gud * looks gud * looks gud * yayer * ya * comments * comments * cleanups * cleanups * fix * ya * ok * ok * refactor(dateField): clean up DateInput after MUI migration - Extract DATETIME_LOCAL_FORMAT constant (was repeated 4 times) - Extract emitChange helper to DRY the synthetic event shape - Simplify handleSetToday to use effectiveTimezone directly, fixing inconsistency when timezone prop overrides context Co-authored-by: Cursor <cursoragent@cursor.com> * refactor(dateField): use getFacilityNowDate for todayDate Remove getTodayInTimezone helper and unused imports (getCurrentDateStringInTimezone, startOfToday) — getFacilityNowDate already produces the correct Date for the effective timezone. Co-authored-by: Cursor <cursoragent@cursor.com> * last tweaks * ya * never did anything? * never did anything? * fix comment * gottem * ya * ya * fix: no-issue: auto-fix 4 review suggestions Co-Authored-By: Review Hero <contact@bes.au> * perf changes * try this * performance tweak * fix deps * fix deps * fix mobile * bump date picker zindex * good catch * ya * comments --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: review-hero[bot] <2896273+review-hero[bot]@users.noreply.github.com> Co-authored-by: Review Hero <contact@bes.au>
Contributor
Author
|
bugbot run |
Harnesh787
approved these changes
Mar 1, 2026
tcodling
approved these changes
Mar 2, 2026
Contributor
tcodling
left a comment
There was a problem hiding this comment.
Great work on this one! So finicky and complicated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Add a brief description of the changes in this PR to help give the reviewer context.
Deploys
Tests
Remember to...