From 26331b401ea5ec95f4524d00f0e5e00c194a50e2 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Thu, 4 Mar 2021 20:36:11 +0400 Subject: [PATCH] Fixed the month in OPDS feed date `tm::tm_mon` varies in the [0, 11] range. --- src/opds_dumper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opds_dumper.cpp b/src/opds_dumper.cpp index 115ba4c38..98854cbe1 100644 --- a/src/opds_dumper.cpp +++ b/src/opds_dumper.cpp @@ -43,7 +43,7 @@ std::string gen_date_str() std::stringstream is; is << std::setw(2) << std::setfill('0') << 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_hour << ":" << std::setw(2) << std::setfill('0') << tm->tm_min << ":"