fix emulate next day button

This commit is contained in:
Tyler Renelle
2013-02-01 14:16:01 -05:00
parent 86ea99c2dc
commit 6e2a700598
+1 -1
View File
@@ -308,7 +308,7 @@ ready (model) ->
model.set "_view.addFriendError", "User with id #{friendId} not found."
exports.emulateNextDay = ->
yesterday = moment().subtract('days', 1).toString()
yesterday = +moment().subtract('days', 1).toDate()
user.set 'lastCron', yesterday
window.location.reload()