From 180bf33a28dd6f2900dff4eb0ecb308c8f16d021 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?=
 <root@acid-chicken.com>
Date: Wed, 18 Jul 2018 01:46:21 +0900
Subject: [PATCH] Update calendar.vue

---
 src/client/app/desktop/views/components/calendar.vue | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/client/app/desktop/views/components/calendar.vue b/src/client/app/desktop/views/components/calendar.vue
index 3b0330cf61..111699618e 100644
--- a/src/client/app/desktop/views/components/calendar.vue
+++ b/src/client/app/desktop/views/components/calendar.vue
@@ -35,10 +35,7 @@ import Vue from 'vue';
 const eachMonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
 
 function isLeapYear(year) {
-	return (year % 400 == 0) ? true :
-		(year % 100 == 0) ? false :
-			(year % 4 == 0) ? true :
-				false;
+	return !(year % (year % 25 ? 4 : 16));
 }
 
 export default Vue.extend({