1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 19:09:01 +00:00

Allow %F date format to mean YYYY-mm-dd like GNU date

This commit is contained in:
dmiller
2020-09-17 21:42:03 +00:00
parent c4ae093630
commit 8ba183531d

View File

@@ -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;