add NULL_DATE & coding standard work

This commit is contained in:
rabuzarus 2017-03-20 16:59:21 +01:00
parent 0060e2449e
commit 0879b46125
2 changed files with 14 additions and 15 deletions

View file

@ -940,5 +940,4 @@ function widget_events() {
'$export_csv' => t("Export calendar as csv"),
'$user' => $user
));
}

View file

@ -53,8 +53,8 @@ function events_post(App $a) {
// The default setting for the `private` field in event_store() is false, so mirror that
$private_event = false;
$start = '0000-00-00 00:00:00';
$finish = '0000-00-00 00:00:00';
$start = NULL_DATE;
$finish = NULL_DATE;
if ($start_text) {
$start = $start_text;