fix
This commit is contained in:
parent
9ca857c98e
commit
fd83c263e1
@ -76,7 +76,7 @@ auto s3_provider::convert_api_date(std::string_view date) -> std::uint64_t {
|
||||
return nanos + utils::time::windows_time_t_to_unix_time(_mkgmtime(&tm1));
|
||||
#else // !defined(_WIN32)
|
||||
strptime(date_time.c_str(), "%Y-%m-%dT%T", &tm1);
|
||||
return nanos + (static_cast<std::uint64_t>(mktime(&tm1)) *
|
||||
return nanos + (static_cast<std::uint64_t>(timegm(&tm1)) *
|
||||
utils::time::NANOS_PER_SECOND);
|
||||
#endif // defined(_WIN32)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user