fixes
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...

This commit is contained in:
2024-08-03 15:50:16 -05:00
parent 68d79c73cf
commit 89fc0fb372
18 changed files with 43 additions and 34 deletions

View File

@ -24,14 +24,14 @@
#include "types/repertory.hpp"
#include "utils/string.hpp"
#include "utils/time.hpp"
#include "utils/utils.hpp"
namespace repertory {
namespace utils::aws {
#if defined(_WIN32)
[[nodiscard]] inline auto format_time(std::uint64_t t) -> std::uint64_t {
FILETIME ft{};
utils::unix_time_to_filetime(t, ft);
auto ft = utils::time::unix_time_to_filetime(t);
return static_cast<std::uint64_t>(ft.dwHighDateTime) << 32u |
ft.dwLowDateTime;
}
@ -75,7 +75,7 @@ struct head_object_result {
struct tm tm1 {};
// Mon, 17 Dec 2012 02:14:10 GMT
#if defined(_WIN32)
utils::strptime(date.c_str(), "%a, %d %b %Y %H:%M:%S %Z", &tm1);
utils::time::strptime(date.c_str(), "%a, %d %b %Y %H:%M:%S %Z", &tm1);
#else
strptime(date.c_str(), "%a, %d %b %Y %H:%M:%S %Z", &tm1);
#endif