From b4649e5a7aea67f478b16232adbe84ec72d0da07 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 21 Jun 2009 15:19:01 +0000 Subject: * fix horoscope days by wikipedia git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4689 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- common/sys/time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/sys/time.c b/common/sys/time.c index 5cf20dc1..6c022698 100644 --- a/common/sys/time.c +++ b/common/sys/time.c @@ -24,7 +24,8 @@ int getHoroscope(int m, int d) // 摩羯 水瓶 雙魚 牡羊 金牛 雙子 巨蟹 獅子 處女 天秤 天蠍 射手 const int firstday[12] = { - /* Jan. */ 20, 19, 21, 20, 21, 21, 23, 23, 23, 23, 22, 22 + // Reference: http://zh.wikipedia.org/wiki/%E6%98%9F%E5%BA%A7 + /* Jan. */ 20, 19, 21, 20, 21, 22, 23, 23, 24, 24, 22, 22 }; if (d >= firstday[m - 1]) { if (m == 12) -- cgit v1.2.3