From cc6f004eb9e6ecee506aa402e919b48f273dcbfb Mon Sep 17 00:00:00 2001 From: job Date: Tue, 10 Jan 2023 13:26:34 +0000 Subject: [PATCH] Improve timestamp printing in filemode OK claudio@ --- usr.sbin/rpki-client/print.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/print.c b/usr.sbin/rpki-client/print.c index 5de6515f088..aceb8db7fbe 100644 --- a/usr.sbin/rpki-client/print.c +++ b/usr.sbin/rpki-client/print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.25 2023/01/06 13:19:43 tb Exp $ */ +/* $OpenBSD: print.c,v 1.26 2023/01/10 13:26:34 job Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -57,7 +57,8 @@ time2str(time_t t) if (gmtime_r(&t, &tm) == NULL) return "could not convert time"; - strftime(buf, sizeof(buf), "%h %d %T %Y %Z", &tm); + strftime(buf, sizeof(buf), "%a %d %b %Y %T %z", &tm); + return buf; } -- 2.20.1