]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ZEP: Use the "%Y-%m-%d" date format
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 21 Mar 2024 14:27:59 +0000 (15:27 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 22 Mar 2024 10:44:03 +0000 (11:44 +0100)
Replace "%Y/%m/%d" with "%Y-%m-%d" like in most date formats.

(backported from commit c3dc126cfa7250e096ae2edf329502c4ab5eda0a)

print-zep.c

index b18437f0c784c8eb6d1a34f8f277a484a6e120e9..2596320a5b219b9a387272afc51a76c46fba2c5b 100644 (file)
@@ -85,7 +85,7 @@ static void zep_print_ts(netdissect_options *ndo, const u_char *p)
                char time_buf[128];
 
                ND_PRINT(" (%s)",
-                   nd_format_time(time_buf, sizeof (time_buf), "%Y/%m/%d %H:%M:%S",
+                   nd_format_time(time_buf, sizeof (time_buf), "%Y-%m-%d %H:%M:%S",
                      localtime(&seconds)));
        }
 }