From b638c3eb033899d9eb312bea4fe5b8c5aa3b8896 Mon Sep 17 00:00:00 2001 From: hylom Date: Wed, 19 Jul 2017 19:31:58 +0900 Subject: [PATCH] fix archive page's calendar to work correctly --- src/newslash_web/templates/archive/index_header.html.tt2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/newslash_web/templates/archive/index_header.html.tt2 b/src/newslash_web/templates/archive/index_header.html.tt2 index 89e9123f..ddd6b741 100644 --- a/src/newslash_web/templates/archive/index_header.html.tt2 +++ b/src/newslash_web/templates/archive/index_header.html.tt2 @@ -1,7 +1,7 @@ [%- USE cal = MicroCalendar; last_day = cal.last_day_of_month(page_property.year, page_property.month); -dow = cal.day_of_week(page_property.year, page_property.month, page_property.day); +dow = cal.day_of_week(page_property.year, page_property.month, 1); days = ['日', '月','火','水','木','金','土','日']; classes = ['sunday', 'monday','tuesday','wednesday','thursday','friday','saturday','sunday']; yyyy = page_property.year; @@ -25,12 +25,12 @@ IF n_mm < 10; n_mm = "0" _ n_mm; END;