1
0
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:
hniksic 2001-04-03 11:54:32 -07:00
parent d5ae105505
commit 1d51748034
2 changed files with 7 additions and 2 deletions

View File

@ -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> 2001-04-03 Paul Bludov <paul@ozero.net>
* mswindows.c (sleep): Use SleepEx() instead of Sleep(). * mswindows.c (sleep): Use SleepEx() instead of Sleep().

View File

@ -1898,8 +1898,8 @@ http_atotm (char *time_string)
/* RFC1123: Thu, 29 Jan 1998 22:12:57 */ /* RFC1123: Thu, 29 Jan 1998 22:12:57 */
if (check_end (strptime (time_string, "%a, %d %b %Y %T", &t))) if (check_end (strptime (time_string, "%a, %d %b %Y %T", &t)))
return mktime_from_utc (&t); return mktime_from_utc (&t);
/* RFC850: Thu, 29-Jan-98 22:12:57 */ /* RFC850: Thursday, 29-Jan-98 22:12:57 */
if (check_end (strptime (time_string, "%a, %d-%b-%y %T", &t))) if (check_end (strptime (time_string, "%A, %d-%b-%y %T", &t)))
return mktime_from_utc (&t); return mktime_from_utc (&t);
/* asctime: Thu Jan 29 22:12:57 1998 */ /* asctime: Thu Jan 29 22:12:57 1998 */
if (check_end (strptime (time_string, "%a %b %d %T %Y", &t))) if (check_end (strptime (time_string, "%a %b %d %T %Y", &t)))