RA-1988 - Allow DatetimePicker to support different timezones #102
Open
icrc-toliveira wants to merge 4 commits into
Open
RA-1988 - Allow DatetimePicker to support different timezones #102icrc-toliveira wants to merge 4 commits into
icrc-toliveira wants to merge 4 commits into
Conversation
…to "dd MMM yyyy HH:mm:ss" - Change datePicker format from "dd M yyyy HH:mm" to "dd M yyyy hh:ii:ss" (this is time used after picking with the datetimepicker) - Updating format every time a change happens (this is required in order to send timezone)
Contributor
Author
|
Hi @dkayiwa, |
Member
|
@icrc-toliveira Thanks for working on this, Do you mind sharing the screenshot . |
- Added new parse format for start/end date to prevent known error - Changed datePickerFormat format to "dd M yyyy hh:ii:ss" (prevents parse error for french) - Dates are now always saved as "YYYY-MM-DDTHH:mm:ss.sssZ", and timezone "cleaning"is done by htmlformentryui
…commons into RA-1988 � Conflicts: � omod/src/main/webapp/fragments/field/datetimepicker.gsp
…ut requesting time, while keeping timezone - To accomplish that, date is parse into "DD MMM YYYY", while keeping the timezone in the input format
This was referenced Oct 21, 2022
Contributor
Author
|
Hi @sherrif10 Sorry for my late response, When developed, datetimepicker didn´t seem to take time zones into account, and in order for this to work a lot of stuff had to be changed.
|
|
@dkayiwa could you kindly review this for merging? Apparently it's one of several blockers for ICRC. |
Member
|
@icrc-toliveira remember to always hit the |
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.

Issue: https://issues.openmrs.org/browse/RA-1988
Description:
When using a date time picker (with time), it will not store the date with time-zone information.
This will result in date being stored always as if was UTC, even when is not.
Changes done:
Related PR's: