diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-06-09 00:53:44 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-06-09 00:53:44 +0200 |
commit | 96cc64a521957d63704de72ed95f1c839698c53c (patch) | |
tree | b8b0366a3f1c970947e820cd244513cf3edd5497 /apt-pkg/acquire-method.cc | |
parent | 550891457ff63db01b57d9057a5fe447a165e10c (diff) |
move the users away from the deprecated StrToTime() method
Diffstat (limited to 'apt-pkg/acquire-method.cc')
-rw-r--r-- | apt-pkg/acquire-method.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire-method.cc b/apt-pkg/acquire-method.cc index fe066741c..b82dceecb 100644 --- a/apt-pkg/acquire-method.cc +++ b/apt-pkg/acquire-method.cc @@ -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; |