Skip to content

Conversation

@icrc-toliveira
Copy link
Contributor

Issue: https://issues.openmrs.org/browse/RA-1988

Although changing time and changing timezone and intrinsically correlated, the more appropriated global property for this use case seems to be GP_TIMEZONE_CONVERSIONS.

Related PR's:

…lly correlated, the more apropiated global property for this use case seems to be GP_TIMEZONE_CONVERSIONS
@gracepotma
Copy link

@dkayiwa can you kindly review this? Apparently waiting for this PR is blocking ICRC.

@gracepotma gracepotma requested a review from dkayiwa November 8, 2022 19:14
@gracepotma
Copy link

Also CCing @mogoodrich since I know you have dealt with a lot of timezone issues at PIH and you may be very interested in this.

HttpServletRequest request, UiUtils ui) {

boolean allowChangingVisitTime = BooleanUtils.toBoolean(Context.getAdministrationService().getGlobalProperty(CoreAppsConstants.GP_ALLOW_CHANGING_VISIT_TIME));
boolean allowConvertingTimezones = BooleanUtils.toBoolean(Context.getAdministrationService().getGlobalProperty(UiFrameworkConstants.GP_TIMEZONE_CONVERSIONS));
Copy link
Member

@dkayiwa dkayiwa Nov 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@icrc-toliveira i find the name of GP_ALLOW_CHANGING_VISIT_TIME easier to understand than what you changed it to.

Secondly, do you mind explaining how just changing the used global property fixes the reported bug?

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.

3 participants