Skip to content

discussion forum category date bug #12327

Description

@bmcutler

Describe the bug
Frog robot / exception related to the discussion forum dates categories.

19:46:49 01/09/2026 - FATAL ERROR
InvalidArgumentException (Code: 0) thrown in /usr/local/submitty/site/app/libraries/DateUtils.php (Line 123) by:
               throw new \InvalidArgumentException('Invalid DateTime Format');


Message:
Invalid DateTime Format

Stack Trace:
#0 /usr/local/submitty/site/app/controllers/forum/ForumController.php(311): app\libraries\DateUtils::parseDateTime()
#1 unknown file(unknown line): app\controllers\forum\ForumController->editCategory()
#2 /usr/local/submitty/site/app/libraries/routers/WebRouter.php(254): call_user_func_array()
#3 /usr/local/submitty/site/app/libraries/routers/WebRouter.php(232): app\libraries\routers\WebRouter->run()
#4 /usr/local/submitty/site/public/index.php(147): app\libraries\routers\WebRouter::getWebResponse()

USER: REDACTED
URL: https://submitty.cs.rpi.edu//courses/s26/REDACTED/forum/categories/edit
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

To Reproduce

(I'm not 100% sure of the steps to reproduce)

From instructor account, on the "discussion forum" page "More" -> "Edit Categories"

Creating (or maybe editing an existing category) there is a bug with the optional date.
This date should allow a category to be hidden until the release date is reached.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions