diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2016-12-31 06:30:11 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2016-12-31 06:30:11 +0900 |
| commit | 5f78ef943e11a9994f761a61562168fc83757632 (patch) | |
| tree | 61ac110f88eb9b6167bc1a22628a251a4e4ba4c5 /src | |
| parent | Clean up: Removes trailing whitespace (diff) | |
| download | misskey-5f78ef943e11a9994f761a61562168fc83757632.tar.gz misskey-5f78ef943e11a9994f761a61562168fc83757632.tar.bz2 misskey-5f78ef943e11a9994f761a61562168fc83757632.zip | |
Desktop: Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/desktop/tags/home-widgets/calendar.tag | 4 |
1 files 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 26cea1c699..87c65729d3 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 |