MCPcopy Create free account
hub / github.com/jasperproject/jasper-client / getTimezone

Function getTimezone

client/app_utils.py:84–95  ·  view source on GitHub ↗

Returns the pytz timezone for a given profile. Arguments: profile -- contains information related to the user (e.g., email address)

(profile)

Source from the content-addressed store, hash-verified

82
83
84def getTimezone(profile):
85 """
86 Returns the pytz timezone for a given profile.
87
88 Arguments:
89 profile -- contains information related to the user (e.g., email
90 address)
91 """
92 try:
93 return timezone(profile['timezone'])
94 except:
95 return None
96
97
98def generateTinyURL(URL):

Callers 3

handleFunction · 0.90
handleFunction · 0.90
handleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected