Commit a8db4e0c authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

make another test timezone agnostic

parent 51f0e4d2
......@@ -191,15 +191,15 @@ TEST_CASE("door controller parses status json")
++count;
}
struct tm start;
localtime_r(&first->start, &start);
gmtime_r(&first->start, &start);
REQUIRE(count == 15);
REQUIRE(start.tm_hour == 22);
REQUIRE(start.tm_hour == 5);
REQUIRE(start.tm_min == 19);
REQUIRE(start.tm_sec == 17);
struct tm end;
localtime_r(&first->end, &end);
REQUIRE(end.tm_hour == 22);
gmtime_r(&first->end, &end);
REQUIRE(end.tm_hour == 5);
REQUIRE(end.tm_min == 39);
REQUIRE(end.tm_sec == 17);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment