Skip to content

Commit

Permalink
Merge pull request #948 from PrefectHQ/datetime
Browse files Browse the repository at this point in the history
fix datetime method call
  • Loading branch information
zzstoatzz authored Jul 4, 2024
2 parents 0d13d38 + cbe60e4 commit de1ed9c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/marvin/beta/assistants/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ def download_temp_file(file_id: str):
def format_timestamp(timestamp: int) -> str:
"""Outputs timestamp as a string in 12 hour format. Hours are left-padded with space instead of zero."""
return (
datetime.datetime.fromtimestamp(timestamp)
.strftime("%I:%M:%S %p")
.lstrip("0")
.rjust(11)
datetime.fromtimestamp(timestamp).strftime("%I:%M:%S %p").lstrip("0").rjust(11)
)


Expand Down

0 comments on commit de1ed9c

Please sign in to comment.