From c8929fed0b9f4da59d3670653797f2932e05a87e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 23 Aug 2024 12:12:05 -0500 Subject: [PATCH] fix --- repertory/librepertory/src/utils/utils.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/repertory/librepertory/src/utils/utils.cpp b/repertory/librepertory/src/utils/utils.cpp index a71d5e72..3530e127 100644 --- a/repertory/librepertory/src/utils/utils.cpp +++ b/repertory/librepertory/src/utils/utils.cpp @@ -52,22 +52,6 @@ void calculate_allocation_size(bool directory, std::uint64_t file_size, allocation_meta_size = std::to_string(allocation_size); } -auto convert_api_date(const std::string &date) -> std::uint64_t { - // 2009-10-12T17:50:30.000Z - const auto date_parts = utils::string::split(date, '.', true); - const auto date_time = date_parts[0U]; - const auto nanos = utils::string::to_uint64( - utils::string::split(date_parts[1U], 'Z', true)[0U]); - - struct tm tm1 {}; -#if defined(_WIN32) - utils::time::strptime(date_time.c_str(), "%Y-%m-%dT%T", &tm1); -#else - strptime(date_time.c_str(), "%Y-%m-%dT%T", &tm1); -#endif - return nanos + (static_cast(mktime(&tm1)) * NANOS_PER_SECOND); -} - auto create_volume_label(const provider_type &prov) -> std::string { return "repertory_" + app_config::get_provider_name(prov); }