modify set_date() in rtc.c

修改月份差一个月的BUG

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@250 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
coldfish.zhu 2009-12-28 12:06:00 +00:00
parent e8a5648cfe
commit fb44bdb9ba
1 changed files with 231 additions and 231 deletions

View File

@ -179,7 +179,7 @@ void set_date(rt_uint32_t year, rt_uint32_t month, rt_uint32_t day)
if (ti != RT_NULL)
{
ti->tm_year = year - 1900;
ti->tm_mon = month;
ti->tm_mon = month - 1; /* 2009.12.27 modify by coldfish.zhu@gmail.com */
ti->tm_mday = day;
}