aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-21 23:49:29 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-21 23:49:29 +0100
commit74b574d0b1874b0811837d9ac4472f1084800aeb (patch)
tree845996f86db36d7d7121074c870c82f63a931abb /mod/events.php
parentd726c921eb5902483dfeb82383829e9309f6b65c (diff)
downloadvolse-hubzilla-74b574d0b1874b0811837d9ac4472f1084800aeb.tar.gz
volse-hubzilla-74b574d0b1874b0811837d9ac4472f1084800aeb.tar.bz2
volse-hubzilla-74b574d0b1874b0811837d9ac4472f1084800aeb.zip
datetimepicker should also respect first day of week setting
Diffstat (limited to 'mod/events.php')
-rwxr-xr-xmod/events.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/events.php b/mod/events.php
index af5a9fc66..e07abbf46 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -281,13 +281,14 @@ function events_content(&$a) {
$first_day = get_pconfig(local_channel(),'system','cal_first_day');
+ $first_day = (($first_day) ? $first_day : 0);
$htpl = get_markup_template('event_head.tpl');
$a->page['htmlhead'] .= replace_macros($htpl,array(
'$baseurl' => $a->get_baseurl(),
'$editselect' => (($plaintext) ? 'none' : 'textareas'),
'$lang' => $a->language,
- '$first_day' => (($first_day) ? $first_day : 0)
+ '$first_day' => $first_day
));
$o ="";
@@ -692,11 +693,11 @@ function events_content(&$a) {
'$required' => '<span class="required" title="' . t('Required') . '">*</span>',
'$ModalCANCEL' => t('Cancel'),
'$ModalOK' => t('OK'),
- '$s_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$syear+5),DateTime::createFromFormat('Y-m-d H:i',"$syear-$smonth-$sday $shour:$sminute"),'start_text',true,true,'','',true),
+ '$s_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$syear+5),DateTime::createFromFormat('Y-m-d H:i',"$syear-$smonth-$sday $shour:$sminute"),'start_text',true,true,'','',true,$first_day),
'$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,new DateTime(),DateTime::createFromFormat('Y',$fyear+5),DateTime::createFromFormat('Y-m-d H:i',"$fyear-$fmonth-$fday $fhour:$fminute"),'finish_text',true,true,'start_text'),
+ '$f_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$fyear+5),DateTime::createFromFormat('Y-m-d H:i',"$fyear-$fmonth-$fday $fhour:$fminute"),'finish_text',true,true,'start_text',$first_day),
'$adjust' => array('adjust', t('Adjust for viewer timezone'), $a_checked, t('Important for events that happen in a particular place. Not practical for global holidays.'),),
'$a_text' => t('Adjust for viewer timezone'),
'$d_text' => t('Description:'),