]> 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]>
Thu, 21 Mar 2024 14:27:59 +0000 (15:27 +0100)
Replace "%Y/%m/%d" with "%Y-%m-%d" like in most date formats.

print-zep.c

index b18437f0c784c8eb6d1a34f8f277a484a6e120e9..689de8c784986f0a2c80eb2ef2bc398531c29f4c 100644 (file)
@@ -84,8 +84,9 @@ static void zep_print_ts(netdissect_options *ndo, const u_char *p)
                time_t seconds = i - JAN_1970;
                char time_buf[128];
 
+               ND_DEBUG
                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)));
        }
 }