HabitRPG / habitica

A habit tracker app which treats your goals like a Role Playing Game.
https://habitica.com
Other
12k stars 4.09k forks source link

sudden death on system clock change #534

Closed ibcbooth closed 11 years ago

ibcbooth commented 11 years ago

I moved my system clock from today's date feb-27th-2013 to feb-1st-2013 (and back again) with HabitRPG up and my character instantly died.

I used the restore and rollback features to get the character back to its pre-death state.

Pandoro commented 11 years ago

Hmmm, this of course is an annoying thing :( I'm sorry that occurred to you. Luckily you were quickly able to restore your character. Since it is somewhat of a border case, since you probably will not change the date frequently, I think this will not have a high priority, but hopefully this will be fixed at some point!

wc8 commented 11 years ago

Just a note: I know someone who's computer clock resets to Jan 1, 2008 or so anytime the battery runs out. It's still an unusual case, though.

horusofoz commented 11 years ago

Is this something we can fix? Use the server time?

lefnire commented 11 years ago

this is going to be difficult to fix, and is extremely edge case. I hate to say it, but i don't think we're going to be addressing this ticket this year - use the "Restore" tool to get your character back on track.

We can't use server time for user cron. Server v Client cron is something I've wrestled with for as long as habit has been under development, and the definite conclusion is cron has to be run on the client. I have a buried workflowy node with my notes i can dig up if needs be.

paglias commented 11 years ago

Hi! The site has been totally rewritten from the ground up, I'm closing the issue since it's probably fixed. Check if it's still happening and in case reopen the bug, thanks!