mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Allow %F date format to mean YYYY-mm-dd like GNU date
This commit is contained in:
parent
c4ae093630
commit
8ba183531d
1 changed files with 3 additions and 0 deletions
|
|
@ -979,6 +979,9 @@ char *logfilename(const char *str, struct tm *tm) {
|
|||
case 'D':
|
||||
strftime(tbuf, sizeof tbuf, "%m%d%y", tm);
|
||||
break;
|
||||
case 'F':
|
||||
strftime(tbuf, sizeof tbuf, "%Y-%m-%d", tm);
|
||||
break;
|
||||
default:
|
||||
*p++ = *str;
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue