mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
update(WeekCalendarHeader):uses the last day of the week instead of the first day of the week for the calendar title
This commit is contained in:
@@ -89,6 +89,8 @@ function generateJSDataStorageObject($indexPage, $calledPath, $calledMethod)
|
||||
{
|
||||
$user_language = getUserLanguage();
|
||||
|
||||
// default locale
|
||||
//user_locale: "'.Locale::DEFAULT_LOCALE.'",
|
||||
$toPrint = "\n";
|
||||
$toPrint .= '<script type="text/javascript">';
|
||||
$toPrint .= '
|
||||
@@ -97,7 +99,8 @@ function generateJSDataStorageObject($indexPage, $calledPath, $calledMethod)
|
||||
ci_router: "'.$indexPage.'",
|
||||
called_path: "'.$calledPath.'",
|
||||
called_method: "'.$calledMethod.'",
|
||||
user_language: "'.$user_language.'"
|
||||
user_language: "'.$user_language.'",
|
||||
timezone: "'.date_default_timezone_get().'",
|
||||
};';
|
||||
$toPrint .= "\n";
|
||||
$toPrint .= '</script>';
|
||||
|
||||
@@ -12,7 +12,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
title() {
|
||||
return this.focusDate.format({ year: 'numeric' }) + ' KW ' + this.focusDate.w;
|
||||
return this.focusDate.cdLastDayOfWeek.format({ year: 'numeric' }) + ' KW ' + this.focusDate.cdLastDayOfWeek.w;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user