diff options
author | Omar Polo <op@omarpolo.com> | 2024-08-29 17:37:39 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-08-29 17:37:39 +0000 |
commit | 11b14c9228d5343f6d37ce485a38d22dadca4ec4 (patch) | |
tree | 7a45af19e2f34ef64151a2996adc2180502884e5 | |
parent | a470c998bd9cf931b3cca1c54ef790661f48bad8 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |