From 2179f53a65865f43c4847bedfc99cf5eb6a56018 Mon Sep 17 00:00:00 2001
From: Jeremy Kersten <jke@odoo.com>
Date: Tue, 7 Jun 2016 13:23:25 +0200
Subject: [PATCH] [FIX] web_calendar: use local format for week in title of
 calendar view.

Commit odoo/odoo@9be7a9535ca1c5a9884ef06b7a567bf42ebdce0a changes the week number
computation to match calendar and pivot views.

Now, calendar don't use isoWeek format by default, but the weekNumber from locale(),
So we need to adapt also the format for title.

closes #12068, closes #9629
---
 addons/web_calendar/static/src/js/web_calendar.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js
index 93dfc195e77e..4d113ebe5887 100644
--- a/addons/web_calendar/static/src/js/web_calendar.js
+++ b/addons/web_calendar/static/src/js/web_calendar.js
@@ -42,7 +42,7 @@ function get_fc_defaultOptions() {
         weekNumbers: true,
         titleFormat: {
             month: 'MMMM yyyy',
-            week: "W",
+            week: "w",
             day: dateFormat,
         },
         columnFormat: {
-- 
GitLab