mirror of https://github.com/kiwix/libkiwix.git
Fixed the month in OPDS feed <updated> date
`tm::tm_mon` varies in the [0, 11] range.
This commit is contained in:
parent
0f368791a2
commit
26331b401e
|
@ -43,7 +43,7 @@ std::string gen_date_str()
|
||||||
std::stringstream is;
|
std::stringstream is;
|
||||||
is << std::setw(2) << std::setfill('0')
|
is << std::setw(2) << std::setfill('0')
|
||||||
<< 1900+tm->tm_year << "-"
|
<< 1900+tm->tm_year << "-"
|
||||||
<< std::setw(2) << std::setfill('0') << tm->tm_mon << "-"
|
<< std::setw(2) << std::setfill('0') << tm->tm_mon+1 << "-"
|
||||||
<< std::setw(2) << std::setfill('0') << tm->tm_mday << "T"
|
<< std::setw(2) << std::setfill('0') << tm->tm_mday << "T"
|
||||||
<< std::setw(2) << std::setfill('0') << tm->tm_hour << ":"
|
<< std::setw(2) << std::setfill('0') << tm->tm_hour << ":"
|
||||||
<< std::setw(2) << std::setfill('0') << tm->tm_min << ":"
|
<< std::setw(2) << std::setfill('0') << tm->tm_min << ":"
|
||||||
|
|
Loading…
Reference in New Issue