fixed date error

This commit is contained in:
2026-01-07 12:00:05 +01:00
parent 671bfc0a35
commit 0e0bc02441
2 changed files with 5 additions and 4 deletions

View File

@@ -34,6 +34,8 @@ TEST_CASE("get_metadata function data correctness test") {
datetime.tm_year = 2026 - 1900;
datetime.tm_mon = 1 - 1;
datetime.tm_mday = 1;
datetime.tm_isdst = 0;
time_t expected_date = mktime(&datetime);
std::string expected_title = "Example of a blog post";
std::vector<std::string> expected_tags = {"blog", "test", "lalilulelo"};