This commit is contained in:
Scott E. Graves 2024-09-26 11:20:07 -05:00
parent b26788819e
commit f12833f36c

View File

@ -69,7 +69,7 @@ auto s3_provider::convert_api_date(std::string_view date) -> std::uint64_t {
struct tm tm1 {};
#if defined(_WIN32)
utils::time::strptime(date_time.c_str(), "%Y-%m-%dT%H:%M:%S", &tm1);
utils::time::strptime(date_time.c_str(), "%Y-%m-%dT%T", &tm1);
return nanos + utils::time::windows_time_t_to_unix_time(mktime(&tm1));
#else // !defined(_WIN32)
strptime(date_time.c_str(), "%Y-%m-%dT%T", &tm1);