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:
SimonGschnell
2025-01-07 15:26:08 +01:00
parent c7ee2934a7
commit 6361d40356
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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>';
+1 -1
View File
@@ -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: {