diff options
author | Derick Rethans <derick@php.net> | 2005-08-31 14:29:23 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2005-08-31 14:29:23 +0000 |
commit | 9230473cd3390ad66eeada83ba418e0c85626321 (patch) | |
tree | a4eb751a7eb123a7b2a2457176d4dcd9407731b5 /ext/date/lib/dow.c | |
parent | d1a4819c092ed0f915c1f5fabe0643f0589f347a (diff) | |
download | php-git-9230473cd3390ad66eeada83ba418e0c85626321.tar.gz |
- Fixed bug #33957 (gmdate('W')/date('W') sometimes returns wrong week number).
Diffstat (limited to 'ext/date/lib/dow.c')
-rw-r--r-- | ext/date/lib/dow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/lib/dow.c b/ext/date/lib/dow.c index e04b018185..4b51cf5daf 100644 --- a/ext/date/lib/dow.c +++ b/ext/date/lib/dow.c @@ -91,7 +91,7 @@ void timelib_isoweek_from_date(timelib_sll y, timelib_sll m, timelib_sll d, time int i; i = y_leap ? 366 : 365; - if ((i - doy) < (4 - weekday)) { + if ((i - (doy - y_leap)) < (4 - weekday)) { *iy = y + 1; *iw = 1; return; |