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

Fix user time zone issue with reminder datetime. Fix for #766. #969

Merged
merged 1 commit into from Mar 15, 2016

Conversation

KhyberPass
Copy link
Contributor

Reminders for Calls and Meetings do not work correctly unless the user’s time zone is set to UTC. If the user’s time zone is set to say Europe (UTC+1) the reminder will trigger 1 hour later.

This was introduced as part of the Reminder enhancements for 7.4.3. It looks like code was copied from include/javascript/jsAlerts.php to modules/Reminders/Reminder.php, however the code in jsAlerts queried Call reminder datetime directly from the database using a query and thus the datetime returned was in UTC, whereas in Reminder.php the query was changed to use the Bean which returns time in the user’s time zone.

The checks performed against the current time were using nowDb() which returns UTC times. This fix changes to check against current time in the user’s time zone.
Originally found this issue in 7.4.3 and then upgraded to 7.5.1 and it was still present. It is also still present in the hotfix branch. This fix will work both releases and the hotfix branch. I am currently running 7.4.3 and have verified that it works. I have also testing in 7.5.1 and hotfix.

This also addresses #811 and #822.

mattlorimer added a commit that referenced this pull request Mar 15, 2016
Fix user time zone issue with reminder datetime. Fix for #766.
@mattlorimer mattlorimer merged commit dfd1fd1 into salesagility:hotfix Mar 15, 2016
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.

None yet

2 participants