diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-21 23:19:01 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-21 23:19:01 +0800 |
commit | b4649e5a7aea67f478b16232adbe84ec72d0da07 (patch) | |
tree | fe544a39da8b2ce47a7d31c2aa8b91f3600bc257 /common/sys | |
parent | 71c59f22b76070c2637d37dc97da40cc54498990 (diff) | |
download | pttbbs-b4649e5a7aea67f478b16232adbe84ec72d0da07.tar pttbbs-b4649e5a7aea67f478b16232adbe84ec72d0da07.tar.gz pttbbs-b4649e5a7aea67f478b16232adbe84ec72d0da07.tar.bz2 pttbbs-b4649e5a7aea67f478b16232adbe84ec72d0da07.tar.lz pttbbs-b4649e5a7aea67f478b16232adbe84ec72d0da07.tar.xz pttbbs-b4649e5a7aea67f478b16232adbe84ec72d0da07.tar.zst pttbbs-b4649e5a7aea67f478b16232adbe84ec72d0da07.zip |
* fix horoscope days by wikipedia
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4689 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common/sys')
-rw-r--r-- | common/sys/time.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |