From 5fce59916d4a2525e3d8661edf12262491964842 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Wed, 29 Jun 2011 20:55:30 +0200 Subject: Datumseingabe korrigiert --- application/controllers/EventController.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'application/controllers/EventController.php') 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); -- cgit v1.2.3-55-g7522