MCPcopy Create free account
hub / github.com/StackStorm/st2 / format_isodate_for_user_timezone

Function format_isodate_for_user_timezone

st2client/st2client/utils/date.py:64–72  ·  view source on GitHub ↗

Format the provided ISO date time string for human friendly display taking into user timezone specific in the config.

(value)

Source from the content-addressed store, hash-verified

62
63
64def format_isodate_for_user_timezone(value):
65 """
66 Format the provided ISO date time string for human friendly display taking into user timezone
67 specific in the config.
68 """
69 config = get_config()
70 timezone = config.get("cli", {}).get("timezone", "UTC")
71 result = format_isodate(value=value, timezone=timezone)
72 return result

Callers 2

format_log_itemsFunction · 0.90

Calls 3

get_configFunction · 0.90
format_isodateFunction · 0.85
getMethod · 0.45

Tested by 1