mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 20:12:19 +00:00
use +new Date on cron
This commit is contained in:
parent
52fe9b77ff
commit
d888d879d8
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ score = (taskId, direction, times, update) ->
|
|||
For incomplete Dailys, deduct experience
|
||||
###
|
||||
cron = (userObj) ->
|
||||
today = new Date()
|
||||
today = +new Date
|
||||
userObj.lastCron ?= today
|
||||
daysPassed = helpers.daysBetween(today, userObj.lastCron)
|
||||
if daysPassed > 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue