Skip to content

Commit a705f1c

Browse files
committed
smbutil.c: Use the "%Y-%m-%d" date format
Replace "%Y/%m/%d" with "%Y-%m-%d" like in most date formats. %T is equivalent to %H:%M:%S. Moreover: Fix indentation.
1 parent b9811ef commit a705f1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smbutil.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,8 @@ smb_fdata1(netdissect_options *ndo,
800800
break;
801801
}
802802
if (t != 0) {
803-
tstring = nd_format_time(buffer, sizeof(buffer), "%a %b %e %T %Y",
804-
localtime(&t));
803+
tstring = nd_format_time(buffer, sizeof(buffer), "%Y-%m-%d %T",
804+
localtime(&t));
805805
} else
806806
tstring = "NULL";
807807
ND_PRINT("%s\n", tstring);

0 commit comments

Comments
 (0)