Time Zones #1528
Replies: 5 comments 1 reply
-
I agree that the answer.log should use the course time zone. The other course log file should do the same. I don't agree that the general WeBWorK transaction log file should use the server time zone instead of the site.conf setting. I agree on 4. |
Beta Was this translation helpful? Give feedback.
-
My thinking for the dates in the transaction log is that this is something only a server admin will access. So for starters, it's for someone who knows more what they are looking at. But also, the timezone/locale in site.conf can be changed just by an edit to site.conf. So with the flick of a switch, prior log data becomes incorrect by some shift. Such a shift is less likely to happen if it's the server's time that is used. Can you elaborate more on why to prefer the site.conf time? I had forgotten about each course's login log. That too is currently using UTC on my server. (I have not yet looked into whether it is using the server's time, or shifting to the site.conf timeone locale which happens to be the same.) |
Beta Was this translation helpful? Give feedback.
-
The site.conf is also something that only a server admin will access. I think if the server admin sets the time zone in the site.conf file, then that is what should be used. It is just as easy to change the servers time zone for an admin as it is to change there site.conf setting. Usually these will probably be the same (at least that is how my servers are set up, and how I would do it). I feel that the site.conf seeing is what WeBWorK should use to keep WeBWorK configuration easy and in the purview of the config files as much as possible. |
Beta Was this translation helpful? Give feedback.
-
Fair enough. Now to discern what is actually the current state of affairs. I opened a PR for item 4. I'd like to open one soon for the answer.log and login.log to switch to use the course's time. If I can be thorough, I'll see if the transaction log is using site.conf time or server time, and if there's a need to change it. |
Beta Was this translation helpful? Give feedback.
-
I also agree that it would be desirable that course log files ( About listing the time-zone in the log messages, it would remove ambiguity, which is probably worth the extra data being included on each line of the file for any site which hosts courses from multiple time zones. As such, I am supportive of having an option to include the time-zone in the log messages. We could consider using a variable set in I am not aware of any "WeBWorK Project" code which makes use of the records stored in About how to provide the time-zone in log files, I recommend providing the "time-zone" in a format which can be parsed back into a correct time. Thus, in my opinion using
Background: Short time zone abbreviations (like |
Beta Was this translation helpful? Give feedback.
-
As I manage the Runestone server, where multiple schools across the globe have courses running, I'm hitting some issues with time zones that you wouldn't normally encounter in a more typical installation. The server's time zone is UTC. And WeBWorK's default time zone is also UTC. But each course sets its own time zone/locale in the course level config file. I have the issues below and am posting to solicit input, objections, etc.
\opt\webwork\webwork2
are using UTC (again, not sure at the moment if it's the server time zone or the site.conf time zone). I think this should be the server time zone. So if I look into it and it's actually using the site.conf time zone, may I change it?Beta Was this translation helpful? Give feedback.
All reactions