diff --git a/engine/apps/slack/utils.py b/engine/apps/slack/utils.py index d206a2fb..85b42c41 100644 --- a/engine/apps/slack/utils.py +++ b/engine/apps/slack/utils.py @@ -1,3 +1,4 @@ +from datetime import datetime from textwrap import wrap from apps.slack.slack_client import SlackClientWithErrorHandling @@ -58,7 +59,8 @@ def post_message_to_channel(organization, channel_id, text): def format_datetime_to_slack(timestamp, format="date_short"): - return f"" + fallback = datetime.utcfromtimestamp(timestamp).strftime("%Y-%m-%d %H:%M (UTC)") + return f"" def get_cache_key_update_incident_slack_message(alert_group_pk):