Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StackStorm/st2
/ add_utc_tz
Function
add_utc_tz
st2client/st2client/utils/date.py:26–27 ·
view source on GitHub ↗
(dt)
Source
from the content-addressed store, hash-verified
24
25
26
def
add_utc_tz(dt):
27
return
dt.replace(tzinfo=dateutil.tz.tzutc())
28
29
30
def
parse(value):
Callers
2
test_format_dt
Method · 0.90
parse
Function · 0.70
Calls
no outgoing calls
Tested by
1
test_format_dt
Method · 0.72