From 14c88ec5044fb4f36c7908e953835b2b77dd4608 Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 4 Dec 2025 14:38:51 -0800 Subject: [PATCH] fix: use current time for signatures instead of hardcoded past date --- weed/s3api/chunked_reader_v4_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/s3api/chunked_reader_v4_test.go b/weed/s3api/chunked_reader_v4_test.go index 20e30fc83..98654ce8b 100644 --- a/weed/s3api/chunked_reader_v4_test.go +++ b/weed/s3api/chunked_reader_v4_test.go @@ -243,7 +243,7 @@ func createTrailerStreamingRequest(t *testing.T, useValidTrailerSignature bool) chunk1DataLenHex := fmt.Sprintf("%x", chunk1DataLen) // Use current time for signatures - now, _ := time.Parse(iso8601Format, "20240115T150405Z") + now := time.Now().UTC() amzDate := now.Format(iso8601Format) dateStamp := now.Format(yyyymmdd)