Skip to content

Commit

Permalink
Add date display for --start-in as well
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Dec 5, 2022
1 parent 25aa8cc commit 7f5b2cd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/prefect/cli/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,14 @@ async def run(
run_url = "<no dashboard available>"

if start_in:
scheduled_display = pendulum.format_diff(scheduled_start_time.diff(now))
scheduled_display = (
scheduled_start_time.in_tz(
pendulum.tz.local_timezone()
).to_datetime_string()
+ " ("
+ pendulum.format_diff(scheduled_start_time.diff(now))
+ ")"
)
elif start_at:
scheduled_display = scheduled_start_time.in_tz(
pendulum.tz.local_timezone()
Expand Down

0 comments on commit 7f5b2cd

Please sign in to comment.