MCPcopy Create free account
hub / github.com/codecombat/codecombat / getUserTimeZone

Function getUserTimeZone

app/core/utils.js:1737–1744  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

1735}
1736
1737const getUserTimeZone = function (user) {
1738 const geo = user.get('geo')
1739 if (geo?.timeZone) {
1740 return geo.timeZone
1741 } else {
1742 return moment.tz.guess()
1743 }
1744}
1745
1746const shouldShowAiBotHelp = function (aceConfig) {
1747 if (aceConfig.levelChat !== 'none') {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected