This commit is contained in:
parent
e86d9fd29b
commit
d5410b88a3
@ -73,6 +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);
|
||||
|
||||
auto utc_time = _mkgmtime(&tm1);
|
||||
localtime_s(&tm1, &utc_time);
|
||||
return nanos + utils::time::windows_time_t_to_unix_time(mktime(&tm1));
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
#include "providers/s3/s3_provider.hpp"
|
||||
#include "utils/file.hpp"
|
||||
#include <utils/time.hpp>
|
||||
|
||||
namespace repertory {
|
||||
TEST(utils, convert_api_date) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user