fixes
This commit is contained in:
parent
afcba6b086
commit
9ca857c98e
@ -1,4 +1,5 @@
|
||||
_lseeki64
|
||||
_mkgmtime
|
||||
_sh_denyno
|
||||
_sh_denyrd
|
||||
_sh_denyrw
|
||||
|
@ -64,7 +64,7 @@ auto s3_provider::convert_api_date(std::string_view date) -> std::uint64_t {
|
||||
auto date_parts = utils::string::split(date, '.', true);
|
||||
auto date_time = date_parts.at(0U);
|
||||
auto nanos =
|
||||
(date_parts.size() == 1U)
|
||||
(date_parts.size() <= 1U)
|
||||
? 0U
|
||||
: utils::string::to_uint64(
|
||||
utils::string::split(date_parts.at(1U), 'Z', true).at(0U)) *
|
||||
@ -73,7 +73,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%T", &tm1);
|
||||
return nanos + utils::time::windows_time_t_to_unix_time(mktime(&tm1));
|
||||
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)) *
|
||||
|
Loading…
x
Reference in New Issue
Block a user