X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fevents.php;h=bf53286c2032173488da80cab4900a404c488bed;hb=72896b0f6b1677a42970f432485df213318141e9;hp=c9c9b7d9f12ecc345def94e80a5dfd45ce56b643;hpb=68a6f0298e4ebbe74d353d130da0094490a4579c;p=friendica.git diff --git a/mod/events.php b/mod/events.php index c9c9b7d9f1..bf53286c20 100644 --- a/mod/events.php +++ b/mod/events.php @@ -189,8 +189,8 @@ function events_content(&$a) { $editselect = 'textareas'; // First day of the week (0 = Sunday) - // To-Do: Needs to be configurable - $firstDay = 0; + $firstDay = get_pconfig(local_user(),'system','first_day_of_week'); + if ($firstDay === false) $firstDay=0; $i18n = array( "firstDay" => $firstDay, @@ -290,7 +290,7 @@ function events_content(&$a) { $m = intval($thismonth); // Put some limits on dates. The PHP date functions don't seem to do so well before 1900. - // An upper limit was chosen to keep search engines from exploring links millions of years in the future. + // An upper limit was chosen to keep search engines from exploring links millions of years in the future. if($y < 1901) $y = 1900;