Installation

Wrong time zone error

Wrong time zone error

by Ravinder Kumar -
Number of replies: 1
Accidently, the time zone was set to NewYork (no warning of invalid value from WebWork). Now logging in generates the following error. No menu is displayed to go into the course to change time zone. Webserver manager could not figure out what to do. A prompt help will be greatly appreciated. Thanks.

WeBWorK error

An error occured while processing your request. For help, please send mail to this site's webmaster (root@localhost), including all of the following information as well as what what you were doing when the error occured.

Fri Oct 18 07:52:24 2013

Warning messages

Error messages

The timezone 'America/NewYork' could not be loaded, or is an invalid name.

Call stack

The information below can help locate the source of the problem.

  • in DateTime::TimeZone::new called at line 1960 of /usr/lib/perl5/vendor_perl/DateTime.pm
  • in DateTime::set_time_zone called at line 508 of /usr/lib/perl5/vendor_perl/DateTime.pm
  • in DateTime::from_epoch called at line 600 of /opt/webwork/webwork2/lib/WeBWorK/Utils.pm
  • in WeBWorK::Utils::formatDateTime called at line 2056 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::formatDateTime called at line 452 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/ProblemSets.pm
  • in WeBWorK::ContentGenerator::ProblemSets::setListRow called at line 269 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/ProblemSets.pm
  • in WeBWorK::ContentGenerator::ProblemSets::body called at line 152 of /opt/webwork/webwork2/lib/WeBWorK/Template.pm
  • in WeBWorK::Template::template called at line 494 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::content called at line 198 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::go called at line 371 of /opt/webwork/webwork2/lib/WeBWorK.pm

Request information

Homework Sets
NameStatus
MethodPOST
URI/webwork2/MAT221fall13/
HTTP Headers
User-AgentMozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Accepttext/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Connectionkeep-alive
Refererhttp://webwork.tougaloo.edu/webwork2/MAT221fall13/
Content-Length35
Accept-Encodinggzip,deflate,sdch
Originhttp://webwork.tougaloo.edu
Content-Typeapplication/x-www-form-urlencoded
Cookie__utma=165143866.200226710.1296072811.1366661001.1381760356.101; __utmz=165143866.1381760356.101.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Accept-Languageen-US,en;q=0.8
Hostwebwork.tougaloo.edu
In reply to Ravinder Kumar

Re: Wrong time zone error

by Arnold Pizer -
Hi Ravinder,

This is easy to fix but you have to have access to the server to do so. Supposedly John Jones has submitted a fix (probably in WW 2.8) so that people will not be able to enter invalid time zones. In the mean time, please make sure you enter only valid timezones (click on the info icon).

To fix this go to the course directory (e.g. /opt/webwork/courses/my_course)
and delete the file "simple.conf". Actually if you have done other coure configuration you can edit simple.conf removing the timezone line.

Arnie