Skip to content

Commit

Permalink
Remove git timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
sjtrny committed Sep 12, 2024
1 parent d503870 commit 862b2b3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions dash/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,6 @@ def component_git_version():
if len(git_output) >= 5:
git_hash = git_output[0]
git_shorthash = git_output[1]
git_time = git_output[2]

natural_time = humanize.naturaltime(
datetime.strptime(git_time, "%Y-%m-%d %H:%M:%S %z"),
when=datetime.now(tz=pytz.timezone("Australia/Sydney")),
)
else:
natural_time = "Error Loading Timestamp"

github_home_url = "https://github.com/forecastlab/forecast_dash/"
github_patch_url = github_home_url + "commit/" + git_hash
Expand All @@ -196,10 +188,6 @@ def component_git_version():
],
className="card-title",
),
html.H6(
f"Committed {natural_time}",
className="card-subtitle mb-2 text-muted",
),
html.P(
[
html.A(
Expand Down

0 comments on commit 862b2b3

Please sign in to comment.