]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-zep.c
Makefile.in: don't remove configure and config.h.in in make distclean.
[tcpdump] / print-zep.c
index da1e91c7d2122394803e3fa64924b5293ad934e6..b18437f0c784c8eb6d1a34f8f277a484a6e120e9 100644 (file)
@@ -82,12 +82,11 @@ static void zep_print_ts(netdissect_options *ndo, const u_char *p)
         */
        if (i) {
                time_t seconds = i - JAN_1970;
-               struct tm *tm;
                char time_buf[128];
 
-               tm = localtime(&seconds);
-               strftime(time_buf, sizeof (time_buf), "%Y/%m/%d %H:%M:%S", tm);
-               ND_PRINT(" (%s)", time_buf);
+               ND_PRINT(" (%s)",
+                   nd_format_time(time_buf, sizeof (time_buf), "%Y/%m/%d %H:%M:%S",
+                     localtime(&seconds)));
        }
 }