refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-09-26 20:22:14 -05:00
parent e86d9fd29b
commit d5410b88a3
2 changed files with 1 additions and 1 deletions

View File

@ -73,6 +73,7 @@ auto s3_provider::convert_api_date(std::string_view date) -> std::uint64_t {
struct tm tm1 {}; struct tm tm1 {};
#if defined(_WIN32) #if defined(_WIN32)
utils::time::strptime(date_time.c_str(), "%Y-%m-%dT%T", &tm1); utils::time::strptime(date_time.c_str(), "%Y-%m-%dT%T", &tm1);
auto utc_time = _mkgmtime(&tm1); auto utc_time = _mkgmtime(&tm1);
localtime_s(&tm1, &utc_time); localtime_s(&tm1, &utc_time);
return nanos + utils::time::windows_time_t_to_unix_time(mktime(&tm1)); return nanos + utils::time::windows_time_t_to_unix_time(mktime(&tm1));

View File

@ -23,7 +23,6 @@
#include "providers/s3/s3_provider.hpp" #include "providers/s3/s3_provider.hpp"
#include "utils/file.hpp" #include "utils/file.hpp"
#include <utils/time.hpp>
namespace repertory { namespace repertory {
TEST(utils, convert_api_date) { TEST(utils, convert_api_date) {