4874. [bug] Wrong time display when reporting new keywarntime.

[RT #47042]

(cherry picked from commit 83d005de61)
This commit is contained in:
Mark Andrews
2018-01-24 08:01:17 +11:00
parent 6650f52fec
commit 54945751e2
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -1,3 +1,6 @@
4874. [bug] Wrong time display when reporting new keywarntime.
[RT #47042]
4872. [bug] Don't permit loading meta RR types such as TKEY
from master files. [RT #47009]
+1 -1
View File
@@ -5554,7 +5554,7 @@ set_key_expiry_warning(dns_zone_t *zone, isc_stdtime_t when, isc_stdtime_t now)
isc_time_set(&zone->keywarntime, when - delta, 0);
} else {
isc_time_set(&zone->keywarntime, when - 7 * 24 * 3600, 0);
isc_time_formattimestamp(&zone->refreshkeytime, timebuf, 80);
isc_time_formattimestamp(&zone->keywarntime, timebuf, 80);
dns_zone_log(zone, ISC_LOG_NOTICE,
"setting keywarntime to %s", timebuf);
}