If I set the Default Time that the Assignment is Due in General on Course Configuration to be 12:30pm (I also tried 12:00pm, the minutes are probably not important) I get the error below when I try to create an assignment. Anything not part of the noon hour is fine. It sounds like WeBWorK::Utils::DateTime::getDefaultSetDueDate is adding 12 to the hour despite it being 12:00pm, but I don't see why that would be happening. I was hoping 13:30 would be a workaround, but the Course Configuration rejects that. This is using version 2.19. Any ideas?
Error messages
Validation failed for type named Hour declared in package DateTime::Types (/usr/lib/x86_64-linux-gnu/perl5/5.38/DateTime/Types.pm) at line 101 in sub named (eval) with value 24 Trace begun at Specio::Exception->new line 57 Specio::Exception::throw('Specio::Exception', 'message', 'Validation failed for type named Hour declared in package DateTime::Types (/usr/lib/x86_64-linux-gnu/perl5/5.38/DateTime/Types.pm) at line 101 in sub named (eval) with value 24', 'type', 'Specio::Constraint::Simple=HASH(0x62f72d13d5b0)', 'value', 24) called at (eval 563) line 144 DateTime::_check_new_params('year', 2025, 'month', 9, 'day', 7, 'hour', 24, 'minute', 00, 'second', 0, 'time_zone', 'America/Chicago') called at /usr/lib/x86_64-linux-gnu/perl5/5.38/DateTime.pm line 177 DateTime::new('DateTime', 'year', 2025, 'month', 9, 'day', 7, 'hour', 24, 'minute', 00, 'second', 0, 'time_zone', 'America/Chicago') called at /opt/webwork/webwork2/lib/WeBWorK/Utils/DateTime.pm line 74 WeBWorK::Utils::DateTime::getDefaultSetDueDate('WeBWorK::CourseEnvironment=HASH(0x62f7376db6e0)') called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetList.pm line 462 WeBWorK::ContentGenerator::Instructor::ProblemSetList::create_handler('WeBWorK::ContentGenerator::Instructor::ProblemSetList=HASH(0x62f7376dbe30)') called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/ProblemSetList.pm line 241 WeBWorK::ContentGenerator::Instructor::ProblemSetList::initialize('WeBWorK::ContentGenerator::Instructor::ProblemSetList=HASH(0x62f7376dbe30)') called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 146 eval {...} at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 109 WeBWorK::ContentGenerator::go('WeBWorK::ContentGenerator::Instructor::ProblemSetList=HASH(0x62f7376dbe30)') called at /usr/share/perl5/Mojolicious.pm line 193 Mojolicious::_action(undef, 'WeBWorK::ContentGenerator::Instructor::ProblemSetList=HASH(0x62f7376dbe30)', 'CODE(0x62f72dcf73a8)', 1) called at /usr/share/perl5/Mojolicious/Plugins.pm line 15 Mojolicious::Plugins::__ANON__ at /opt/webwork/webwork2/lib/Mojolicious/WeBWorK.pm line 165 eval {...} at /opt/webwork/webwork2/lib/Mojolicious/WeBWorK.pm line 145 Mojolicious::WeBWorK::__ANON__('CODE(0x62f7376aea98)', 'WeBWorK::ContentGenerator::Instructor::ProblemSetList=HASH(0x62f7376dbe30)', 'CODE(0x62f72dcf73a8)', 1) called at /usr/share/perl5/Mojolicious/Plugins.pm line 15 Mojolicious::Plugins::__ANON__ at /usr/share/perl5/Mojolicious/Plugins.pm line 18 Mojolicious::Plugins::emit_chain('Mojolicious::Plugins=HASH(0x62f729582e48)', 'around_action', 'WeBWorK::ContentGenerator::Instructor::ProblemSetList=HASH(0x62f7376dbe30)', 'CODE(0x62f72dcf73a8)', 1) called at /usr/share/perl5/Mojolicious/Routes.pm line 88 Mojolicious::Routes::_action('Mojolicious::WeBWorK=HASH(0x62f729582ce0)', 'WeBWorK::ContentGenerator::Instructor::ProblemSetList=HASH(0x62f7376dbe30)', 'CODE(0x62f72dcf73a8)', 1) called at /usr/share/perl5/Mojolicious/Routes.pm line 161 Mojolicious::Routes::_controller('Mojolicious::Routes=HASH(0x62f7279ffc28)', 'Mojolicious::Controller=HASH(0x62f737717dc0)', 'HASH(0x62f7373e89d8)', 1) called at /usr/share/perl5/Mojolicious/Routes.pm line 44 Mojolicious::Routes::continue('Mojolicious::Routes=HASH(0x62f7279ffc28)', 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious/Routes.pm line 46 Mojolicious::Routes::continue('Mojolicious::Routes=HASH(0x62f7279ffc28)', 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious/Routes.pm line 46 Mojolicious::Routes::continue('Mojolicious::Routes=HASH(0x62f7279ffc28)', 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious/Routes.pm line 46 Mojolicious::Routes::continue('Mojolicious::Routes=HASH(0x62f7279ffc28)', 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious/Routes.pm line 46 Mojolicious::Routes::continue('Mojolicious::Routes=HASH(0x62f7279ffc28)', 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious/Routes.pm line 52 Mojolicious::Routes::dispatch('Mojolicious::Routes=HASH(0x62f7279ffc28)', 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious.pm line 127 Mojolicious::dispatch('Mojolicious::WeBWorK=HASH(0x62f729582ce0)', 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious.pm line 136 Mojolicious::__ANON__(undef, 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious/Plugins.pm line 15 Mojolicious::Plugins::__ANON__ at /usr/share/perl5/Mojolicious.pm line 203 eval {...} at /usr/share/perl5/Mojolicious.pm line 203 Mojolicious::_exception('CODE(0x62f737632050)', 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious/Plugins.pm line 15 Mojolicious::Plugins::__ANON__ at /usr/share/perl5/Mojolicious/Plugins.pm line 18 Mojolicious::Plugins::emit_chain('Mojolicious::Plugins=HASH(0x62f729582e48)', 'around_dispatch', 'Mojolicious::Controller=HASH(0x62f737717dc0)') called at /usr/share/perl5/Mojolicious.pm line 141 Mojolicious::handler('Mojolicious::WeBWorK=HASH(0x62f729582ce0)', 'Mojo::Transaction::HTTP=HASH(0x62f73730ad90)') called at /usr/share/perl5/Mojo/Server.pm line 72 Mojo::Server::__ANON__('Mojo::Server::Prefork=HASH(0x62f72784c988)', 'Mojo::Transaction::HTTP=HASH(0x62f73730ad90)') called at /usr/share/perl5/Mojo/EventEmitter.pm line 15 Mojo::EventEmitter::emit('Mojo::Server::Prefork=HASH(0x62f72784c988)', 'request', 'Mojo::Transaction::HTTP=HASH(0x62f73730ad90)') called at /usr/share/perl5/Mojo/Server/Daemon.pm line 103 Mojo::Server::Daemon::__ANON__('Mojo::Transaction::HTTP=HASH(0x62f73730ad90)') called at /usr/share/perl5/Mojo/EventEmitter.pm line 15 Mojo::EventEmitter::emit('Mojo::Transaction::HTTP=HASH(0x62f73730ad90)', 'request') called at /usr/share/perl5/Mojo/Transaction/HTTP.pm line 60 Mojo::Transaction::HTTP::server_read('Mojo::Transaction::HTTP=HASH(0x62f73730ad90)', 'user=djordan&effectiveUser=djordan&visible_sets=Demo&visible_sets=editing_test&visible_sets=LinearEqns&visible_sets=Percent&visible_sets=Proportion&visible_sets=Student_Orientation&visible_sets=test&visible_sets=testinglots&prev_visible_sets=Demo&prev_visible_sets=editing_test&prev_visible_sets=LinearEqns&prev_visible_sets=Percent&prev_visible_sets=Proportion&prev_visible_sets=Student_Orientation&prev_visible_sets=test&prev_visible_sets=testinglots&editMode=0&exportMode=0&primarySortField=due_date&primarySortOrder=ASC&secondarySortField=open_date&secondarySortOrder=ASC&action=create&action.filter.scope=match_ids&action.filter.set_ids=&action.sort.primary=due_date&action.sort.primary.order=ASC&action.sort.secondary=open_date&action.sort.secondary.order=ASC&action.edit.scope=selected&action.publish.scope=selected&action.publish.value=1&action.import.number=1&action.import.name=&action.import.start.date=&action.import.assign=djordan&action.export.scope=selected&action.score.scope=selected&action.create.name=testing12&action.create.type=empty&action.delete.confirm=no') called at /usr/share/perl5/Mojo/Server/Daemon.pm line 224 Mojo::Server::Daemon::_read('Mojo::Server::Prefork=HASH(0x62f72784c988)', '7b12ee3d5e80822d1835f0b74f62c70f', 'user=djordan&effectiveUser=djordan&visible_sets=Demo&visible_sets=editing_test&visible_sets=LinearEqns&visible_sets=Percent&visible_sets=Proportion&visible_sets=Student_Orientation&visible_sets=test&visible_sets=testinglots&prev_visible_sets=Demo&prev_visible_sets=editing_test&prev_visible_sets=LinearEqns&prev_visible_sets=Percent&prev_visible_sets=Proportion&prev_visible_sets=Student_Orientation&prev_visible_sets=test&prev_visible_sets=testinglots&editMode=0&exportMode=0&primarySortField=due_date&primarySortOrder=ASC&secondarySortField=open_date&secondarySortOrder=ASC&action=create&action.filter.scope=match_ids&action.filter.set_ids=&action.sort.primary=due_date&action.sort.primary.order=ASC&action.sort.secondary=open_date&action.sort.secondary.order=ASC&action.edit.scope=selected&action.publish.scope=selected&action.publish.value=1&action.import.number=1&action.import.name=&action.import.start.date=&action.import.assign=djordan&action.export.scope=selected&action.score.scope=selected&action.create.name=testing12&action.create.type=empty&action.delete.confirm=no') called at /usr/share/perl5/Mojo/Server/Daemon.pm line 202 Mojo::Server::Daemon::__ANON__('Mojo::IOLoop::Stream=HASH(0x62f736b9b580)') called at /usr/share/perl5/Mojo/EventEmitter.pm line 15 Mojo::EventEmitter::emit('Mojo::IOLoop::Stream=HASH(0x62f736b9b580)', 'read', 'user=djordan&effectiveUser=djordan&visible_sets=Demo&visible_sets=editing_test&visible_sets=LinearEqns&visible_sets=Percent&visible_sets=Proportion&visible_sets=Student_Orientation&visible_sets=test&visible_sets=testinglots&prev_visible_sets=Demo&prev_visible_sets=editing_test&prev_visible_sets=LinearEqns&prev_visible_sets=Percent&prev_visible_sets=Proportion&prev_visible_sets=Student_Orientation&prev_visible_sets=test&prev_visible_sets=testinglots&editMode=0&exportMode=0&primarySortField=due_date&primarySortOrder=ASC&secondarySortField=open_date&secondarySortOrder=ASC&action=create&action.filter.scope=match_ids&action.filter.set_ids=&action.sort.primary=due_date&action.sort.primary.order=ASC&action.sort.secondary=open_date&action.sort.secondary.order=ASC&action.edit.scope=selected&action.publish.scope=selected&action.publish.value=1&action.import.number=1&action.import.name=&action.import.start.date=&action.import.assign=djordan&action.export.scope=selected&action.score.scope=selected&action.create.name=testing12&action.create.type=empty&action.delete.confirm=no') called at /usr/share/perl5/Mojo/IOLoop/Stream.pm line 109 Mojo::IOLoop::Stream::_read('Mojo::IOLoop::Stream=HASH(0x62f736b9b580)') called at /usr/share/perl5/Mojo/IOLoop/Stream.pm line 57 Mojo::IOLoop::Stream::__ANON__('Mojo::Reactor::EV=HASH(0x62f7290d2078)') called at /usr/share/perl5/Mojo/Reactor/Poll.pm line 141 eval {...} at /usr/share/perl5/Mojo/Reactor/Poll.pm line 141 Mojo::Reactor::Poll::_try('Mojo::Reactor::EV=HASH(0x62f7290d2078)', 'I/O watcher', 'CODE(0x62f730f81278)', 0) called at /usr/share/perl5/Mojo/Reactor/EV.pm line 54 Mojo::Reactor::EV::__ANON__('EV::IO=SCALAR(0x62f73728ed80)', 1) called at /usr/share/perl5/Mojo/Reactor/EV.pm line 32 eval {...} at /usr/share/perl5/Mojo/Reactor/EV.pm line 32 Mojo::Reactor::EV::start('Mojo::Reactor::EV=HASH(0x62f7290d2078)') called at /usr/share/perl5/Mojo/IOLoop.pm line 134 Mojo::IOLoop::start('Mojo::IOLoop=HASH(0x62f72909c640)') called at /usr/share/perl5/Mojo/Server/Prefork.pm line 152 Mojo::Server::Prefork::_spawn('Mojo::Server::Prefork=HASH(0x62f72784c988)') called at /usr/share/perl5/Mojo/Server/Prefork.pm line 93 Mojo::Server::Prefork::_manage('Mojo::Server::Prefork=HASH(0x62f72784c988)') called at /usr/share/perl5/Mojo/Server/Prefork.pm line 78 Mojo::Server::Prefork::run('Mojo::Server::Prefork=HASH(0x62f72784c988)') called at /usr/share/perl5/Mojo/Server/Hypnotoad.pm line 74 Mojo::Server::Hypnotoad::run('Mojo::Server::Hypnotoad=HASH(0x62f72784c6b8)', '/opt/webwork/webwork2/bin/webwork2') called at /usr/bin/hypnotoad line 14
Context
-
9: 'h|help' => \my $help,
-
10: 's|stop' => \$ENV{HYPNOTOAD_STOP},
-
11: 't|test' => \$ENV{HYPNOTOAD_TEST};
-
12:
-
13: die extract_usage if $help || !(my $app = shift || $ENV{HYPNOTOAD_APP});
-
14: Mojo::Server::Hypnotoad->new->run($app);
-
15:
-
16: =encoding utf8
-
17:
-
18: =head1 NAME
-
19:
Call stack
Request information
The HTTP request information is included in the following table.
Item | Data | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Method | POST | ||||||||||||||||||||||||||||||||||||||||||
URI | https://webwork.colum.edu/webwork2/DJsandbox/instructor/sets | ||||||||||||||||||||||||||||||||||||||||||
HTTP Headers |
|