From: Daniel Stenberg Date: Mon, 30 May 2022 22:29:17 +0000 (+0200) Subject: curl_getdate.3: document that some illegal dates pass through X-Git-Tag: curl-7_84_0~121 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1f8d50a92faab66d5dbc145604e98d0a5e10b16;p=thirdparty%2Fcurl.git curl_getdate.3: document that some illegal dates pass through Closes #8938 --- 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