From 50e4fbebc750e3256c89d25936aecdaa20fb9f38 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 31 Dec 2016 06:30:11 +0900 Subject: [PATCH] Desktop: Fix bug --- src/web/app/desktop/tags/home-widgets/calendar.tag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/app/desktop/tags/home-widgets/calendar.tag b/src/web/app/desktop/tags/home-widgets/calendar.tag index 26cea1c69..87c65729d 100644 --- a/src/web/app/desktop/tags/home-widgets/calendar.tag +++ b/src/web/app/desktop/tags/home-widgets/calendar.tag @@ -122,8 +122,8 @@ script. @day-denom = 1000ms * 60s * 60m * 24h @month-numer = (now - (new Date ny, nm, 1)) @month-denom = (new Date ny, nm + 1, 1) - (new Date ny, nm, 1) - @year-numer = (now - (new Date ny, 0, 0)) - @year-denom = (new Date ny + 1, 0, 0) - (new Date ny, 0, 0) + @year-numer = (now - (new Date ny, 0, 1)) + @year-denom = (new Date ny + 1, 0, 1) - (new Date ny, 0, 1) @day-p = @day-numer / @day-denom * 100 @month-p = @month-numer / @month-denom * 100