refactor
This commit is contained in:
parent
b26788819e
commit
f12833f36c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user