1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

when getting headers only, stop pretending the reported time is GMT, as it

isn't. In fact, it might be, but we have no idea.
This commit is contained in:
Daniel Stenberg 2003-10-30 09:06:24 +00:00
parent 41535eaea9
commit 46accd62d1

View File

@ -2103,8 +2103,8 @@ CURLcode ftp_perform(struct connectdata *conn,
#else #else
tm = localtime((time_t *)&data->info.filetime); tm = localtime((time_t *)&data->info.filetime);
#endif #endif
/* format: "Tue, 15 Nov 1994 12:45:26 GMT" */ /* format: "Tue, 15 Nov 1994 12:45:26" */
strftime(buf, BUFSIZE-1, "Last-Modified: %a, %d %b %Y %H:%M:%S GMT\r\n", strftime(buf, BUFSIZE-1, "Last-Modified: %a, %d %b %Y %H:%M:%S\r\n",
tm); tm);
result = Curl_client_write(data, CLIENTWRITE_BOTH, buf, 0); result = Curl_client_write(data, CLIENTWRITE_BOTH, buf, 0);
if(result) if(result)