mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-08 02:50:59 +00:00
handle 'from' propperly, even if it contains a time
This commit is contained in:
parent
545cdb4e32
commit
1d8743fd7f
|
@ -61,7 +61,8 @@ else
|
||||||
$comment = $_POST["comment"];
|
$comment = $_POST["comment"];
|
||||||
|
|
||||||
if(isset($_POST["from"])) {
|
if(isset($_POST["from"])) {
|
||||||
$tmp = explode('-', $_POST["from"]);
|
$from = explode('T', $_POST["from"]);
|
||||||
|
$tmp = explode('-', $from[0]);
|
||||||
$from = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]);
|
$from = mktime(0,0,0, $tmp[1], $tmp[2], $tmp[0]);
|
||||||
} else {
|
} else {
|
||||||
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user