From b1f8d50a92faab66d5dbc145604e98d0a5e10b16 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 31 May 2022 00:29:17 +0200 Subject: [PATCH] curl_getdate.3: document that some illegal dates pass through Closes #8938 --- docs/libcurl/curl_getdate.3 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/libcurl/curl_getdate.3 b/docs/libcurl/curl_getdate.3 index d977a8ab35..570a45e356 100644 --- a/docs/libcurl/curl_getdate.3 +++ b/docs/libcurl/curl_getdate.3 @@ -33,6 +33,10 @@ time_t curl_getdate(char *datestring, time_t *now); 1st 1970 00:00:00 in the UTC time zone, for the date and time that the \fIdatestring\fP parameter specifies. The \fInow\fP parameter is not used, pass a NULL there. + +This function works with valid dates and does not always detect and reject +wrong dates, such as February 30. + .SH PARSING DATES AND TIMES A "date" is a string containing several items separated by whitespace. The order of the items is immaterial. A date string may contain many flavors of