mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
now that API requires timezone on server, make sure it's save to user
from website too
This commit is contained in:
parent
836d44e4bc
commit
69a6a235bb
1 changed files with 4 additions and 0 deletions
|
|
@ -127,6 +127,10 @@ ready (model) ->
|
|||
e.at().remove()
|
||||
browser.resetDom(model) if $(el).attr('data-refresh')
|
||||
|
||||
tz = user.get("preferences.timezoneOffset")
|
||||
unless tz and tz is (new Date()).getTimezoneOffset()
|
||||
user.set 'preferences.timezoneOffset', (new Date()).getTimezoneOffset()
|
||||
|
||||
###
|
||||
Cron
|
||||
###
|
||||
|
|
|
|||
Loading…
Reference in a new issue