Modified:
/trunk/vanillaapp/controllers/class.problemscontroller.php
/trunk/vanillaapp/settings/structure.php
=======================================
--- /trunk/vanillaapp/controllers/class.problemscontroller.php Sat Jul 10
22:18:17 2010
+++ /trunk/vanillaapp/controllers/class.problemscontroller.php Sat Jul 10
22:19:01 2010
@@ -198,6 +198,7 @@
$Values = $this->Form->FormValues();
assert($Values["Author"] == $this->Session->UserID);
+ $this->Form->SetFormValue("Submitted",
Gdn_Format::ToDateTime());
$this->Form->SetFormValue("Length",
strlen(preg_replace("/\s+/", "", $Values["Source"])));
$this->Form->SetFormValue("IsPublic", $this->Problem->State ==
ProblemState::PUBLISHED ? 1 : 0);
=======================================
--- /trunk/vanillaapp/settings/structure.php Sat Jul 10 22:18:45 2010
+++ /trunk/vanillaapp/settings/structure.php Sat Jul 10 22:19:01 2010
@@ -51,6 +51,7 @@
$Construct->Table("Submission")
->PrimaryKey("No")
+ ->Column("Submitted", "datetime")
->Column("Problem", "int", -1, "key")
->Column("IsPublic", "int", 0, "key")
->Column("Author", "int", -1, "key")