Skip to content

Commit

Permalink
platform independent timestamp (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz authored Jun 28, 2024
1 parent 770ba6d commit 9af0a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controlflow/handlers/print_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def on_tool_result_done(self, message: ToolMessage):

def format_timestamp(timestamp: datetime.datetime) -> str:
local_timestamp = timestamp.astimezone()
return local_timestamp.strftime("%l:%M:%S %p")
return local_timestamp.strftime("%I:%M:%S %p").lstrip("0").rjust(11)


def status(icon, text) -> Table:
Expand Down

0 comments on commit 9af0a82

Please sign in to comment.