From: job Date: Tue, 10 Jan 2023 13:26:34 +0000 (+0000) Subject: Improve timestamp printing in filemode X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cc6f004eb9e6ecee506aa402e919b48f273dcbfb;p=openbsd Improve timestamp printing in filemode OK claudio@ --- 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; }