Fixed the month in OPDS feed <updated> date

`tm::tm_mon` varies in the [0, 11] range.
This commit is contained in:
Veloman Yunkan 2021-03-04 20:36:11 +04:00
parent 0f368791a2
commit 26331b401e
1 changed files with 1 additions and 1 deletions

View File

@ -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 << ":"