[bazel-bench-nightly] Fix a bug with datetime
@@ -325,7 +325,7 @@ def _report_generation_step(date, project_label, bucket, platform):
# Copy the generated report to a special path on GCS that's reserved for
# "latest" reports. GCS doesn't support symlink.
- date_dir = datetime.datetime.strtptime(date, "%Y-%m-%d").strftime("%Y/%m/%d")
+ date_dir = date.strftime("%Y/%m/%d")
report_dated_path_gcs = "gs://{}/{}/{}/report.html".format(
bucket, project_label, date_dir)
report_latest_path_gcs = "gs://{}/{}/report_latest.html".format(
