Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed using incorrect value for commit_time.
  • Loading branch information
LoopedBard3 committed Sep 28, 2022
commit 12aca50010eca2c2fff6f365964beb083a06ab1d
2 changes: 1 addition & 1 deletion scripts/ci_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def __main(args: list) -> int:
dotnet_version = dotnet.get_dotnet_version(target_framework_moniker, args.cli) if args.dotnet_versions == [] else args.dotnet_versions[0]
commit_sha = dotnet.get_dotnet_sdk(target_framework_moniker, args.cli) if args.commit_sha is None else args.commit_sha
if(args.commit_time is not None):
parsed_timestamp = datetime.datetime.strptime(timestamp_value, '%Y-%m-%d %H:%M:%S %z').astimezone(datetime.timezone.utc)
parsed_timestamp = datetime.datetime.strptime(args.commit_time, '%Y-%m-%d %H:%M:%S %z').astimezone(datetime.timezone.utc)
source_timestamp = parsed_timestamp.strftime('%Y-%m-%dT%H:%M:%SZ')
else:
source_timestamp = dotnet.get_commit_date(target_framework_moniker, commit_sha, repo_url)
Expand Down