From 11b14c9228d5343f6d37ce485a38d22dadca4ec4 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Thu, 29 Aug 2024 17:37:39 +0000 Subject: fix timestamps in common and combined log styles Reported by Colin Henein, thank you! see --- gmid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmid.c b/gmid.c index cb9f694..5c8a743 100644 --- a/gmid.c +++ b/gmid.c @@ -101,7 +101,7 @@ log_request(struct client *c, int code, const char *meta) fatal("time"); if ((tm = localtime(&now)) == NULL) fatal("localtime"); - if (strftime(tstamp, sizeof(tstamp), "%d/%b%Y:%H:%M:%S %z", tm) == 0) + if (strftime(tstamp, sizeof(tstamp), "%d/%b/%Y:%H:%M:%S %z", tm) == 0) fatal("strftime"); if (strftime(rfc3339, sizeof(rfc3339), "%FT%T%z", tm) == 0) fatal("strftime"); -- cgit v1.2.3