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

RA-1988 - When seething dates to midnight, change the required Global property from allowChangingVisitTime to allowConvertingTimezones #457

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

@@ -40,10 +40,10 @@ public SimpleObject setDuration(@SpringBean("visitService") VisitService visitSe
@RequestParam(value="stopDate", required = false) Date stopDate,
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