aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-08-29 17:37:39 +0000
committerOmar Polo <op@omarpolo.com>2024-08-29 17:37:39 +0000
commit11b14c9228d5343f6d37ce485a38d22dadca4ec4 (patch)
tree7a45af19e2f34ef64151a2996adc2180502884e5
parenta470c998bd9cf931b3cca1c54ef790661f48bad8 (diff)
fix timestamps in common and combined log styles
Reported by Colin Henein, thank you! see <https://github.com/omar-polo/gmid/issues/39>
-rw-r--r--gmid.c2
1 files changed, 1 insertions, 1 deletions
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");