Skip to content

Commit

Permalink
fix: make format string a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang committed Nov 26, 2024
1 parent 59f8692 commit e290a41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion silverback/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

from silverback.cluster.client import ClusterClient, PlatformClient

LOCAL_DATETIME = "%Y-%m-%d %H:%M:%S %Z"


@click.group(cls=SectionedHelpGroup)
@click.version_option(message="%(version)s", package_name="silverback")
Expand Down Expand Up @@ -225,7 +227,7 @@ def workspace_info(platform: "PlatformClient", workspace: str):
click.echo(f"{click.style('Slug', fg='green')}: '{workspace_info.slug}'")
click.echo(
f"{click.style('Date Created', fg='green')}: "
f"{workspace_info.created.astimezone().strftime('%Y-%m-%d %H:%M:%S %Z')}"
f"{workspace_info.created.astimezone().strftime(LOCAL_DATETIME)}"
)


Expand Down

0 comments on commit e290a41

Please sign in to comment.