mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 01:42:07 -04:00
leap years were off by one
This commit is contained in:
parent
4d7d50710d
commit
d0bfc8cafe
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdata.c,v 1.46 1999/05/18 17:46:59 bwelling Exp $ */
|
||||
/* $Id: rdata.c,v 1.47 1999/05/27 18:03:40 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -1009,7 +1009,7 @@ time_totext(unsigned long value, isc_buffer_t *target) {
|
|||
|
||||
|
||||
tm.tm_year = 70;
|
||||
while ((secs = year_secs(tm.tm_year + 1900 + 1)) <= t) {
|
||||
while ((secs = year_secs(tm.tm_year + 1900)) <= t) {
|
||||
t -= secs;
|
||||
tm.tm_year++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue