Skip to content

Commit

Permalink
replace asctime() with strftime()
Browse files Browse the repository at this point in the history
  • Loading branch information
vergoh committed Mar 10, 2018
1 parent a788e8b commit df66e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dbshow.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ void showsummary(const interfaceinfo *interface, const int shortmode)
e_rx=e_tx=0;

if (interface->updated && !shortmode) {
printf("Database updated: %s\n",(char*)asctime(localtime(&interface->updated)));
strftime(datebuff, DATEBUFFLEN, "%Y-%m-%d %H:%M:%S", localtime(&interface->updated));
printf("Database updated: %s\n\n", datebuff);
} else if (!shortmode) {
printf("\n");
}
Expand Down

0 comments on commit df66e52

Please sign in to comment.