carolstone 3fa3b491dc Modified common/script/index.coffee to display dayStart, but send back a
variable of dayStart for processing, instead of having the object directly
updated at the time of edit.

Modified website/views/options/settings.jade to allow a timestamp to be
cast to an iso timestamp because lastCron is saved as an iso timestamp,
and as a straight moment()-based timestamp in order to compare timestamps.

Modified website/public/js/controllers/settingsCtrl.js to do the
following:
   Accept the new proposed dayStart
   Calculate the timestamp of the old dayStart and the new dayStart

     These two steps were necessary because dayStart is an integer between
     and including 0 and 23. I tested and confirmed the current production
     dayStart does not allow 24 to be entered but does allow 0. I was
     careful to NOT change how that worked.

   Cast the old dayStart, the new dayStart and lastCron to the moment()
   version of time so they could be compared.

   Cast the new dayStart to the iso timestamp for storage in lastCron

   The important change is the following:

   if oldDayStart < lastCron AND lastCron < newDayStart then lastCron
   should be set to newDayStart. I modified this to include if oldDayStart
   = lastCron, although I think that's pretty unlikely to be possible.
   When I tested this, my lastCron was a mere 17 seconds after my
   oldDayStart, so it seemed to me that the equal case should be included
   with the less than case.
2015-07-17 21:17:07 -04:00
2015-05-24 15:46:57 -05:00
2015-06-25 11:19:01 -05:00
2015-07-02 07:58:11 -05:00
2015-02-15 09:30:07 -05:00
2015-06-21 19:28:19 -05:00
2015-04-29 08:04:53 -05:00
2014-09-21 16:57:52 +10:00
2014-08-07 00:39:57 -04:00
2015-06-30 17:59:30 +02:00
2015-02-10 08:49:29 -06:00
2015-06-09 08:57:12 -04:00
2014-09-21 17:13:15 +10:00
2015-06-21 19:28:19 -05:00

HabitRPG Build Status Code Climate Coverage Status Bountysource Dependency Status

HabitRPG is an open source habit building program which treats your life like a Role Playing Game. Level up as you succeed, lose HP as you fail, earn money to buy weapons and armor.

We need more programmers! Your assistance will be greatly appreciated.

For an introduction to the technologies used and how the software is organised, refer to Contributing to HabitRPG - "Coders (Web & Mobile)" section.

To set up a local install of HabitRPG for development and testing, see Setting up HabitRPG locally, which contains instructions for Windows, *nix / Mac OS, and Vagrant.

Then read Guidance for Blacksmiths for additional instructions and useful tips.

S
Description
A habit tracker app which treats your goals like a Role Playing Game.
Readme 1.9 GiB
Languages
JavaScript 51.7%
Vue 23.8%
CSS 23.7%
SCSS 0.7%