]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
move the users away from the deprecated StrToTime() method
[apt.git] / methods / http.cc
index d43dd14c89242818514a74f186d62477f352b637..5fdc62696d2b2ca46116dfedafb06415051a8935 100644 (file)
@@ -631,7 +631,7 @@ bool ServerState::HeaderLine(string Line)
    
    if (stringcasecmp(Tag,"Last-Modified:") == 0)
    {
-      if (StrToTime(Val,Date) == false)
+      if (RFC1123StrToTime(Val.c_str(), Date) == false)
         return _error->Error(_("Unknown date format"));
       return true;
    }