]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-method.cc
move the users away from the deprecated StrToTime() method
[apt.git] / apt-pkg / acquire-method.cc
index fe066741c4456fc7dd0f35bdd59705d125919d80..b82dceecb4997175b30ffbaf4552cd752c4b99e6 100644 (file)
@@ -373,7 +373,7 @@ int pkgAcqMethod::Run(bool Single)
            
            Tmp->Uri = LookupTag(Message,"URI");
            Tmp->DestFile = LookupTag(Message,"FileName");
-           if (StrToTime(LookupTag(Message,"Last-Modified"),Tmp->LastModified) == false)
+           if (RFC1123StrToTime(LookupTag(Message,"Last-Modified").c_str(),Tmp->LastModified) == false)
               Tmp->LastModified = 0;
            Tmp->IndexFile = StringToBool(LookupTag(Message,"Index-File"),false);
            Tmp->Next = 0;