HCoop
/
ntk
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
move the users away from the deprecated StrToTime() method
[ntk/apt.git]
/
methods
/
http.cc
diff --git
a/methods/http.cc
b/methods/http.cc
index
d43dd14
..
5fdc626
100644
(file)
--- a/
methods/http.cc
+++ b/
methods/http.cc
@@
-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;
}