Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mryab committed Sep 24, 2024
1 parent 2415e78 commit be1cc46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/together/cli/api/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def create(

report_string = f"Successfully submitted a fine-tuning job {response.id}"
if response.created_at is not None:
created_time = datetime.strptime(response.created_at, "%Y-%m-%dT%H:%M:%S.%f%z")
created_time = datetime.strptime(
response.created_at, "%Y-%m-%dT%H:%M:%S.%f%z"
)
# created_at reports UTC time, we use .astimezone() to convert to local time
formatted_time = created_time.astimezone().strftime("%m/%d/%Y, %H:%M:%S")
report_string += f" at {formatted_time}"
Expand Down

0 comments on commit be1cc46

Please sign in to comment.