diff options
author | Job Snijders <job@cvs.openbsd.org> | 2023-01-10 13:26:35 +0000 |
---|---|---|
committer | Job Snijders <job@cvs.openbsd.org> | 2023-01-10 13:26:35 +0000 |
commit | 26a9577868c91731f41717f4710446a77603f696 (patch) | |
tree | 03da970d73a4080aa675a873789d06fed20b5232 /usr.sbin/rpki-client/print.c | |
parent | b64b1a340181e71585cb5af6335bb02507f8aafc (diff) |
Improve timestamp printing in filemode
OK claudio@
Diffstat (limited to 'usr.sbin/rpki-client/print.c')
-rw-r--r-- | usr.sbin/rpki-client/print.c | 5 |
1 files 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 <claudio@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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; } |