Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMT-3943: Updated to support times in UTC #1322

Merged
merged 22 commits into from
Nov 26, 2024
Merged

MMT-3943: Updated to support times in UTC #1322

merged 22 commits into from
Nov 26, 2024

Conversation

cgokey
Copy link
Collaborator

@cgokey cgokey commented Nov 19, 2024

Overview

What is the feature?

The existing date/time widget would wipe out any time the user selected. We should allow them to select a time or type in the time and preserve what they type.

What is the Solution?

The widget now configures the react-date-picker to show times. Also if they select a time, it should display in ISO format. Both the time picker and the text field should show the date in UTC.

What areas of the application does this impact?

Any forms that use the date time picker (such as Temporal Information page)

Testing

Go to the Temporal Information page and add a Single Date Time. Click on the text field, this will bring up the widget.

You'll see the ability to select times on the right.

You can also type in the time in the text box.

Verify that either what you select or type show up in the JSON below.

Attachments

Screenshot 2024-11-19 at 6 41 44 PM

Checklist

  • I have added automated tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.68%. Comparing base (c84acf9) to head (41a11e5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1322   +/-   ##
=======================================
  Coverage   97.68%   97.68%           
=======================================
  Files         366      366           
  Lines        5743     5753   +10     
  Branches     1205     1208    +3     
=======================================
+ Hits         5610     5620   +10     
  Misses        132      132           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mandyparson
Copy link
Contributor

When I change the time to this: 2024-11-25T23:59:59.999Z and click "save and continue" then come back, it changes the time to 2024-11-25T16:59:59.000Z

@cgokey cgokey merged commit 922e533 into main Nov 26, 2024
5 of 7 checks passed
@cgokey cgokey deleted the MMT-3943 branch November 26, 2024 12:17
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.

4 participants