diff --git a/src/ChangeLog b/src/ChangeLog index 83a58380..6fcd4f97 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-04-03 KOJIMA Hajime + + * 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 * mswindows.c (sleep): Use SleepEx() instead of Sleep(). diff --git a/src/http.c b/src/http.c index 7c40d060..ec593be2 100644 --- a/src/http.c +++ b/src/http.c @@ -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)))