cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_getdate

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 19 Jun 2011 19:22:17 +0200 (CEST)

On Sun, 19 Jun 2011, Paolo Piacentini wrote:

> char *validFormt = "20111641 34:73:00";
>
> This is the 34th hour and 73rd minute of the 41st day of the 16th month of
> 2011.
>
> curl_getdate(validFormt, NULL) does not fail to parse the string and returns
> 1273662780.
>
> Is that the way it should work?

That seems a bit too liberal in what it accepts. You up to providing a patch?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-19