diff --git a/src/jp2_remediator/processor.py b/src/jp2_remediator/processor.py index 7ba519b..78a51c1 100644 --- a/src/jp2_remediator/processor.py +++ b/src/jp2_remediator/processor.py @@ -32,7 +32,7 @@ def process_s3_file(self, input_bucket, input_key, output_bucket, output_prefix= # Generate the output key dynamically if not explicitly provided if not output_key: - timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S") + timestamp = datetime.datetime.now().strftime("%Y%m%d") output_key = os.path.join( output_prefix, os.path.basename(input_key).replace(".jp2", f"_modified_file_{timestamp}.jp2")