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 | 22203283eb280478ca164049542d1d32f818828e (patch) | |
tree | 8cb821b63e39194ee6757d7f446d1ecd4beea1e3 | |
parent | 19852ac710faf824518a07e08a4be80471df3ca8 (diff) | |
download | pttbbs-22203283eb280478ca164049542d1d32f818828e.tar pttbbs-22203283eb280478ca164049542d1d32f818828e.tar.gz pttbbs-22203283eb280478ca164049542d1d32f818828e.tar.bz2 pttbbs-22203283eb280478ca164049542d1d32f818828e.tar.lz pttbbs-22203283eb280478ca164049542d1d32f818828e.tar.xz pttbbs-22203283eb280478ca164049542d1d32f818828e.tar.zst pttbbs-22203283eb280478ca164049542d1d32f818828e.zip |
* fix horoscope days by wikipedia
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4689 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/common/sys/time.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/common/sys/time.c b/pttbbs/common/sys/time.c index 5cf20dc1..6c022698 100644 --- a/pttbbs/common/sys/time.c +++ b/pttbbs/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) |