fmanniv
Newbie
Karma: 0
Posts: 1
|
 |
« on: July 31, 2008, 07:49:51 PM » |
|
I am enjoying this program and recently upgraded to 1.2.10. When testing all functions for a new schedule I noticed the email reminders were being sent at the right times but the text of the subject and body had the wrong times. Interestingly, they were off by exactly the server time offset. The config.php was set to the appropriate GMT and searching through this forum gave me ideas for fixes that all resulted in dead ends. I check the mysql databases and the reservations were being made correctly. As I said above, it was odd as the emails were being sent at the appropriate times but just displayed the wrong time in the subject and body of the email. Another piece to the puzzle is the dates were all correct. I know enough php to get myself in trouble, and in reviewing the ReminderEmail.class.php I noticed it was as follows beginning on line 80 for the body:
Time::formatDate($reminder->start_date, '', true, $reminder->timezone), Time::formatTime($reminder->start_time, true, $reminder->timezone), Time::formatDate($reminder->end_date, '', true, $reminder->timezone), Time::formatTime($reminder->end_time, true, $reminder->timezone)
My limited php abilities did not help, but my "keen" observational skills allowed me to notice the '' missing in the start time and end time lines. These same '' were also missing on line 72 for the subject. Changing the above lines to include the '' as is seen on the date lines fixed all problems.
I'm not sure if anyone else has had this problem but searching the forums did not help. I saw one post wedged in between non-related posts that remarked the reminder times were also off by the GMT setting, but no answer had been posted to the March 2008 question (I apologize but searching again I could not find this original post to link). It seems this may be a solution for that problem.
Someone who knows more about php may wish to explain exactly what I did, but for now I will revel in my ignorance as I receive correct times in my reminder emails.
|