Skip to content

Commit 661050c

Browse files
committed
openshift: Improve comment recommending global times in config file.
1 parent bb6f681 commit 661050c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

zulip/integrations/openshift/zulip_openshift_config.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ def deployment_notice_destination(branch: str) -> Optional[Dict[str, str]]:
2828
return None
2929

3030

31+
# To utilize Zulip's global times (https://zulip.com/help/global-times),
32+
# uncomment the below function, and call it from format_deployment_message.
33+
# def get_global_time(dt_str: str) -> str:
34+
# return f"<time:{datetime.strptime(dt_str, '%Y-%m-%d %H:%M:%S %z').isoformat()}>"
35+
36+
3137
# Modify this function to change how deployments are displayed
3238
#
3339
# It takes the following arguments:
@@ -39,9 +45,6 @@ def deployment_notice_destination(branch: str) -> Optional[Dict[str, str]]:
3945
# * commit_id = hash of the commit that triggered the deployment
4046
# * dep_id = deployment id
4147
# * dep_time = deployment timestamp
42-
#
43-
# To utilize Zulip's global times (https://zulip.com/help/global-times),
44-
# use the syntax `<time:dep_time>`.
4548
def format_deployment_message(
4649
app_name: str = "",
4750
url: str = "",

0 commit comments

Comments
 (0)