From 6ee78dcd07a147135b60e2e4783449b8ac21b288 Mon Sep 17 00:00:00 2001 From: Odysseas Georgoudis Date: Wed, 1 Nov 2023 14:55:31 +0000 Subject: [PATCH] cast to time_t --- quill/src/detail/misc/FileUtilities.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quill/src/detail/misc/FileUtilities.cpp b/quill/src/detail/misc/FileUtilities.cpp index bf24b143..cc96a07b 100644 --- a/quill/src/detail/misc/FileUtilities.cpp +++ b/quill/src/detail/misc/FileUtilities.cpp @@ -105,7 +105,7 @@ fs::path append_date_time_to_filename(fs::path const& filename, bool with_time, std::string get_datetime_string(uint64_t timestamp_ns, Timezone timezone, bool with_time) { // convert to seconds - time_t time_now = static_cast(timestamp_ns / 1000000000); + time_t time_now = static_cast(timestamp_ns / 1000000000); tm now_tm; if (timezone == Timezone::GmtTime) @@ -168,4 +168,4 @@ fs::path append_string_to_filename(fs::path const& filename, std::string const& return ss.str(); } -} // namespace quill::detail \ No newline at end of file +} // namespace quill::detail