-
Notifications
You must be signed in to change notification settings - Fork 71.8k
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
Logged Treatment has incorrect date. Advances on GMT rather than local time zone. #8304
Comments
Patch: diff --git a/lib/client/careportal.js b/lib/client/careportal.js
index 514dbf5d..1f59101b 100644
--- a/lib/client/careportal.js
+++ b/lib/client/careportal.js
@@ -18,8 +18,8 @@ function init (client, $) {
function setDateAndTime (time) {
time = time || client.ctx.moment();
- eventTime.val(time.hours() + ":" + time.minutes());
- eventDate.val(time.toISOString().split('T')[0]);
+ eventTime.val(time.format('HH:mm'));
+ eventDate.val(time.format('YYYY-MM-DD'));
}
function mergeDateAndTime () { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When logging a treatment the date is changing based on GMT rather than on the local time zone. For us this means treatments logged after 6pm will have tomorrows date.
Steps to reproduce the behavior:
Expected behavior
Date would be local
Screenshots
If applicable, add screenshots to help explain your problem.
Your setup information
Additional context
Using Heroku to roll back to Version 14.2.6 fixes issue.
The text was updated successfully, but these errors were encountered: