From 3beb62e0a1f7521fe43e33c6f99ef9f1398c0227 Mon Sep 17 00:00:00 2001 From: Haiqi Xu <14502009+haiqi96@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:46:19 -0400 Subject: [PATCH] fix --- components/core/src/clp/aws/AwsAuthenticationSigner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/core/src/clp/aws/AwsAuthenticationSigner.cpp b/components/core/src/clp/aws/AwsAuthenticationSigner.cpp index f5de55c286..b3db1e462c 100644 --- a/components/core/src/clp/aws/AwsAuthenticationSigner.cpp +++ b/components/core/src/clp/aws/AwsAuthenticationSigner.cpp @@ -91,7 +91,8 @@ auto is_unreserved_characters(char c) -> bool { auto get_formatted_timestamp_string(std::chrono::system_clock::time_point const& timestamp) -> string { - return fmt::format("{:%Y%m%dT%H%M%SZ}", timestamp); + auto const timestamp_secs = std::chrono::time_point_cast(timestamp); + return fmt::format("{:%Y%m%dT%H%M%SZ}", timestamp_secs); } auto get_formatted_date_string(std::chrono::system_clock::time_point const& timestamp) -> string {