fix
This commit is contained in:
@@ -28,8 +28,9 @@ namespace repertory {
|
||||
#if defined(_WIN32)
|
||||
TEST(utils, convert_api_date) {
|
||||
LARGE_INTEGER li{};
|
||||
li.QuadPart = static_cast<std::uint64_t>(utils::time::unix_time_to_windows_time(
|
||||
s3_provider::convert_api_date("2009-10-12T17:50:30.000Z")));
|
||||
li.QuadPart =
|
||||
static_cast<std::int64_t>(utils::time::unix_time_to_windows_time(
|
||||
s3_provider::convert_api_date("2009-10-12T17:50:30.111Z")));
|
||||
|
||||
SYSTEMTIME st{};
|
||||
FileTimeToSystemTime(reinterpret_cast<FILETIME *>(&li), &st);
|
||||
@@ -44,7 +45,7 @@ TEST(utils, convert_api_date) {
|
||||
EXPECT_EQ(17, lt.wHour);
|
||||
EXPECT_EQ(50, lt.wMinute);
|
||||
EXPECT_EQ(30, lt.wSecond);
|
||||
EXPECT_EQ(0, lt.wMilliseconds);
|
||||
EXPECT_EQ(111, lt.wMilliseconds);
|
||||
}
|
||||
#endif // defined(_WIN32)
|
||||
|
||||
|
Reference in New Issue
Block a user