Skip to content

Commit c3dc126

Browse files
committed
ZEP: Use the "%Y-%m-%d" date format
Replace "%Y/%m/%d" with "%Y-%m-%d" like in most date formats.
1 parent 8e464bd commit c3dc126

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

print-zep.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ static void zep_print_ts(netdissect_options *ndo, const u_char *p)
8484
time_t seconds = i - JAN_1970;
8585
char time_buf[128];
8686

87+
ND_DEBUG
8788
ND_PRINT(" (%s)",
88-
nd_format_time(time_buf, sizeof (time_buf), "%Y/%m/%d %H:%M:%S",
89+
nd_format_time(time_buf, sizeof (time_buf), "%Y-%m-%d %H:%M:%S",
8990
localtime(&seconds)));
9091
}
9192
}

0 commit comments

Comments
 (0)