mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-27 19:17:18 +08:00
* libc/time/mktm_r.c (_mktm_r): Fix previous fix.
This commit is contained in:
parent
2691168e98
commit
477215fe7d
@ -1,3 +1,7 @@
|
||||
2011-08-26 Steven Abner <pheonix@zoomtown.com>
|
||||
|
||||
* libc/time/mktm_r.c (_mktm_r): Fix previous fix.
|
||||
|
||||
2011-08-24 Corinna Vinschen <vinschen@redhat.com>
|
||||
|
||||
* libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.
|
||||
|
@ -182,7 +182,7 @@ _DEFUN (_mktm_r, (tim_p, res, is_gmtime),
|
||||
{
|
||||
res->tm_mon = 11;
|
||||
res->tm_year -= 1;
|
||||
res->tm_yday = 364 + isleap(res->tm_year);
|
||||
res->tm_yday = 364 + isleap(res->tm_year + 1900);
|
||||
}
|
||||
res->tm_mday = ip[res->tm_mon];
|
||||
}
|
||||
@ -254,4 +254,3 @@ _DEFUN (__tzcalc_limits, (year),
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user