aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2014-10-19 10:47:42 +0200
committerStefan Parviainen <saparvia@caterva.eu>2014-10-19 10:47:42 +0200
commit519ef4850021c929764f1175a9aae569d1ae36a6 (patch)
treebe466e8e2160d7391d0e368e93f238d50201b4d4 /mod/events.php
parentd9817779fbeaebf4b75c0670da7013bf4482b72b (diff)
downloadvolse-hubzilla-519ef4850021c929764f1175a9aae569d1ae36a6.tar.gz
volse-hubzilla-519ef4850021c929764f1175a9aae569d1ae36a6.tar.bz2
volse-hubzilla-519ef4850021c929764f1175a9aae569d1ae36a6.zip
Changes in the datetimesel api, prevent user from picking event end date earlier than start date
Diffstat (limited to 'mod/events.php')
-rwxr-xr-xmod/events.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/events.php b/mod/events.php
index e5ae7c662..459ed05bb 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -554,11 +554,11 @@ function events_content(&$a) {
'$ftext' => $ftext,
'$ModalCANCEL' => t('Cancel'),
'$ModalOK' => t('OK'),
- '$s_dsel' => datetimesel($f,'start_text',$syear+5,$syear,false,$syear,$smonth,$sday,$shour,$sminute),
+ '$s_dsel' => datetimesel($f,mktime(),mktime(0,0,0,0,0,$syear+5),mktime(),'start_text'),
'$n_text' => t('Finish date/time is not known or not relevant'),
'$n_checked' => $n_checked,
'$f_text' => t('Event Finishes:'),
- '$f_dsel' => datetimesel($f,'finish_text',$fyear+5,$fyear,false,$fyear,$fmonth,$fday,$fhour,$fminute),
+ '$f_dsel' => datetimesel($f,mktime(),mktime(0,0,0,0,0,$fyear+5),mktime(),'finish_text',true,true,'start_text'),
'$a_text' => t('Adjust for viewer timezone'),
'$a_checked' => $a_checked,
'$d_text' => t('Description:'),