WeBWorK Main Forum

time incorrect in webwork generated email

time incorrect in webwork generated email

by Hal Sadofsky -
Number of replies: 2
We have a strange (minor but annoying) time problem.

Our webwork server displays the correct time when I type "date" in a shell:

Eg:

wwork@webwork:/etc> date
Tue Nov 3 14:31:52 PST 2009
wwork@webwork:/etc>


On webwork pages, the correct time is displayed. In global.conf, the time zone is set correctly:

$siteDefaults{timezone} = "America/Los_Angeles";


But, if an email gets created in webwork, the date on the email is one hour too early.

This began happening (not surprisingly) on November 1.

Does anyone have a clue what could be causing this and (more importantly) how to fix it?

thanks, Hal
In reply to Hal Sadofsky

Re: time incorrect in webwork generated email

by Xiong Chiamiov -
While I don't have any real technical reason for this, my initial inclination is to reboot the webserver (apache, not the machine) because it's caching the time or somesuch. The more I think about this, the less sense it makes, since it'd have to be running some sort of separate time-counting process, which would be silly. Nonetheless, it's a fairly low-risk operation, and I'd be curious to see if it changes anything.
In reply to Xiong Chiamiov

Re: time incorrect in webwork generated email

by Hal Sadofsky -
Well, I hate it when fixes work and I don't understand them. But not as much as I hate not being able to fix the problem.

Restarting apache seems to have done the trick - thank you for the suggestion, Xiong!

Hal