From: Francois-Xavier Le Bail Date: Thu, 21 Mar 2024 14:27:59 +0000 (+0100) Subject: ZEP: Use the "%Y-%m-%d" date format X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/c3dc126cfa7250e096ae2edf329502c4ab5eda0a ZEP: Use the "%Y-%m-%d" date format Replace "%Y/%m/%d" with "%Y-%m-%d" like in most date formats. --- diff --git a/print-zep.c b/print-zep.c index b18437f0..689de8c7 100644 --- a/print-zep.c +++ b/print-zep.c @@ -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))); } }