aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-09-13 20:43:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-09-13 20:43:12 +0000
commite99bf99829371dd57887aa758bdd3707ca22be77 (patch)
treea524a726301bdcfdb86c07b58621290857a95c78
parent2e7dcc1e2ae6101d23ea4e6f050ef5b7ffcea4c2 (diff)
revert the change for the new date parser, as the new one can deal with
the old format now
-rw-r--r--lib/ftp.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 64097c646..1cea72c7a 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -903,10 +903,6 @@ CURLcode ftp_sendquote(struct connectdata *conn, struct curl_slist *quote)
return CURLE_OK;
}
-#ifdef NEW_DATE_PARSE
-extern const char *Curl_month[];
-#endif
-
/***********************************************************************
*
* ftp_getfiletime()
@@ -939,17 +935,10 @@ CURLcode ftp_getfiletime(struct connectdata *conn, char *file)
&year, &month, &day, &hour, &minute, &second)) {
/* we have a time, reformat it */
time_t secs=time(NULL);
-#ifdef NEW_DATE_PARSE
- /* using the new date parser */
- snprintf(buf, sizeof(conn->data->state.buffer),
- "%s %02d %02d:%02d:%02d %04d GMT",
- Curl_month[month-1], day, hour, minute, second, year);
-#else
/* using the good old yacc/bison yuck */
snprintf(buf, sizeof(conn->data->state.buffer),
"%04d%02d%02d %02d:%02d:%02d GMT",
year, month, day, hour, minute, second);
-#endif
/* now, convert this into a time() value: */
conn->data->info.filetime = curl_getdate(buf, &secs);
}