Error associated with dated reminder

heyjulie wrote on Monday, March 02, 2015:

Hello,

I am currently getting this error and was wondering if it is only me or any other users as well.

“ Warning: date(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/New_York’ for ‘EST/-5.0/no DST’ instead in /var/www/html/usr/openemr/openemr-4.1.2/interface/main/dated_reminders/dated_reminders.php on line 37 Warning: strtotime(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/New_York’ for ‘EST/-5.0/no DST’ instead in /var/www/html/usr/openemr/openemr-4.1.2/interface/main/dated_reminders/dated_reminders.php on line 37"
Show Reminders

The reason why I’m asking this is because I don’t think I changed anything in the file. If anybody has any experience with this error, could you please give me some direction where to look at? Thanks!

Best,
Julie

yehster wrote on Monday, March 02, 2015:

If you changed PHP versions recently, that’s one reason why you might have that warning now when it hasn’t appeared before.

The best solution is to explicitly set the timezone in php.ini

visolveemr wrote on Tuesday, March 03, 2015:

Julie,

Set the Date timezone configuration in php.ini file, which looks like below

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York

and supported timezones are found here

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library