summaryrefslogtreecommitdiffstats
path: root/application/controllers/EventController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/EventController.php')
-rw-r--r--application/controllers/EventController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index a9f247c..3c66713 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -122,6 +122,8 @@ class EventController extends Zend_Controller_Action
} else {
$addForm = new Application_Form_EventAdd(array('eventcategorylist' => $eventcategorylist, 'bootoslist' => $bootoslist, 'poollist' => $poollist, $_POST));
if ($addForm->isValid($_POST)) {
+ $_POST['start'] = date ('Y-m- H:i', strtotime($_POST['start']));
+ $_POST['end'] = date ('Y-m-d H:i', strtotime($_POST['end']));
$event = new Application_Model_Event($_POST);
$event->setPbs_membershipID(1);
try {
@@ -206,6 +208,8 @@ class EventController extends Zend_Controller_Action
if (isset($_POST["save"])){
$editForm = new Application_Form_EventEdit(array('eventcategorylist' => $eventcategorylist, 'bootoslist' => $bootoslist, 'poollist' => $poollist, $_POST));
if ($editForm->isValid($_POST)) {
+ $_POST['start'] = date ('Y-m-d H:i', strtotime($_POST['start']));
+ $_POST['end'] = date ('Y-m-d H:i', strtotime($_POST['end']));
$event = new Application_Model_Event($_POST);
$event->setID($eventID);
$event->setPbs_membershipID(1);