Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Use global time in GitHub Actions & OpenShift screenshots.

Niloth Pa8bc5bb8433a
diff --git a/static/images/integrations/github-actions/001.png b/static/images/integrations/github-actions/001.png
index 1f97fe15299..05471524bc8 100644
Binary files a/static/images/integrations/github-actions/001.png and b/static/images/integrations/github-actions/001.png differ
diff --git a/static/images/integrations/openshift/001.png b/static/images/integrations/openshift/001.png
index 2240a47ffa2..210dd6d03c6 100644
Binary files a/static/images/integrations/openshift/001.png and b/static/images/integrations/openshift/001.png differ
diff --git a/zerver/webhooks/fixtureless_integrations.py b/zerver/webhooks/fixtureless_integrations.py
index 0d66d264db8..2782a8bfab2 100644
--- a/zerver/webhooks/fixtureless_integrations.py
+++ b/zerver/webhooks/fixtureless_integrations.py
@@ -50,8 +50,7 @@ TICKET_NUMBER = THREE_DIGIT_NUMBER
# Example datetime content
_DT = datetime(2025, 5, 30, 2, 0, 0, tzinfo=timezone.utc)
-DATETIME_STAMP = _DT.strftime("%Y-%m-%d %H:%M:%S")
-DATETIME_GLOBAL = f"<time:{_DT.strftime('%Y-%m-%dT%H:%M:%S%z')}>"
+DATETIME_GLOBAL = f"<time:{_DT}>"
DATE_ISO_8601 = _DT.strftime("%Y-%m-%d")
DATE_LONG = _DT.strftime("%A, %B %d, %Y")
@@ -97,7 +96,7 @@ GIT = ScreenshotContent(
GITHUB_ACTIONS = ScreenshotContent(
topic="scheduled backups",
- content=f"""Backup [failed]() at {DATETIME_STAMP}.
+ content=f"""Backup [failed]() at {DATETIME_GLOBAL}.
> Unable to connect.""",
)
@@ -155,7 +154,7 @@ Can we reschedule this to next week?""",
OPENSHIFT = ScreenshotContent(
topic=PROJECT_NAME,
- content=f"""Deployment [{REVISION_NUMBER}]() triggered by a push to **{BRANCH_GIT}** by commit [{COMMIT_HASH_A[:7]}]() at {DATETIME_STAMP} has **failed**.""",
+ content=f"""Deployment [{REVISION_NUMBER}]() triggered by a push to **{BRANCH_GIT}** by commit [{COMMIT_HASH_A[:7]}]() at {DATETIME_GLOBAL} has **failed**.""",
)
PERFORCE = ScreenshotContent(