From: Arran Cudbard-Bell Date: Tue, 7 Sep 2021 22:18:31 +0000 (-0500) Subject: Print out the current ime correctly X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c0dd8cffb96973210130b5483b63996fdde48c;p=thirdparty%2Ffreeradius-server.git Print out the current ime correctly --- diff --git a/src/lib/tls/cert.c b/src/lib/tls/cert.c index ddd1333dd4d..77f8be741f5 100644 --- a/src/lib/tls/cert.c +++ b/src/lib/tls/cert.c @@ -73,7 +73,7 @@ int fr_tls_cert_is_valid(fr_unix_time_t *not_before_p, fr_unix_time_t *not_after if (fr_time_from_sec(not_after) < now) { fr_strerror_printf("Certificate has expired. " "Validity period (notAfter) ends %pV, current time is %pV", - fr_box_date(fr_unix_time_from_time(not_before)), fr_box_date(now)); + fr_box_date(fr_unix_time_from_time(not_before)), fr_box_date(fr_time_to_unix_time(now))); return -2; } @@ -84,7 +84,7 @@ int fr_tls_cert_is_valid(fr_unix_time_t *not_before_p, fr_unix_time_t *not_after if (fr_time_from_sec(not_before) > now) { fr_strerror_printf("Certificate is not yet valid. " "Validity period (notBefore) starts %pV, current time is %pV", - fr_box_date(fr_unix_time_from_time(not_before)), fr_box_date(now)); + fr_box_date(fr_unix_time_from_time(not_before)), fr_box_date(fr_time_to_unix_time(now))); return -3; }