mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Fix support for rfc850 time recognition on systems where strptime
format specs %a and %A are not the same. Published in <49022.983849922@ideon.st.ryukoku.ac.jp>.
This commit is contained in:
parent
d5ae105505
commit
1d51748034
@ -1,3 +1,8 @@
|
||||
2001-04-03 KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>
|
||||
|
||||
* http.c (http_atotm): Use %A instead of %a to match full
|
||||
weekday. (On most systems there is no difference.)
|
||||
|
||||
2001-04-03 Paul Bludov <paul@ozero.net>
|
||||
|
||||
* mswindows.c (sleep): Use SleepEx() instead of Sleep().
|
||||
|
@ -1898,8 +1898,8 @@ http_atotm (char *time_string)
|
||||
/* RFC1123: Thu, 29 Jan 1998 22:12:57 */
|
||||
if (check_end (strptime (time_string, "%a, %d %b %Y %T", &t)))
|
||||
return mktime_from_utc (&t);
|
||||
/* RFC850: Thu, 29-Jan-98 22:12:57 */
|
||||
if (check_end (strptime (time_string, "%a, %d-%b-%y %T", &t)))
|
||||
/* RFC850: Thursday, 29-Jan-98 22:12:57 */
|
||||
if (check_end (strptime (time_string, "%A, %d-%b-%y %T", &t)))
|
||||
return mktime_from_utc (&t);
|
||||
/* asctime: Thu Jan 29 22:12:57 1998 */
|
||||
if (check_end (strptime (time_string, "%a %b %d %T %Y", &t)))
|
||||
|
Loading…
Reference in New Issue
Block a user