joe-salomon cdbbf93b74 Weekly/Monthly Habit reset counters resetting early - fixes #8570 (#8749)
* For habit reset logic, changed day check calculation to use user’s timezone instead of server time.
Added unit tests to check following cases:
- Weekly habit reset: Server tz is Sunday, User tz is Monday
- Weekly habit reset: Server tz is Monday, User tz is Sunday
- Monthly habit reset: Server tz is 1st of month, User tz is 2nd of month
- Monthly habit reset: Server tz is end of prev month, User tz is 1st of month

* use moment().zone() instead of utcOffset()

* typo

* Fixed check for daysMissed, added logic for CDS
Added test for CDS, fixed previous tests
2017-07-18 12:53:39 -07:00
2016-12-12 21:51:53 +01:00
2016-05-23 13:58:31 +02:00
2016-12-28 09:33:24 +01:00
2016-09-07 08:44:57 -05:00
2016-12-26 16:04:36 +01:00
2016-09-29 13:32:36 +02:00
2016-09-18 21:51:20 +02:00
2016-12-12 21:51:53 +01:00
2016-12-28 09:33:24 +01:00
2017-06-17 19:02:03 +02:00
2016-06-21 06:42:20 -05:00
2017-07-10 20:07:46 +00:00
2017-07-16 16:25:07 +00:00
2016-05-23 13:58:31 +02:00
2015-07-31 18:05:10 +10:00

Habitica Build Status Code Climate Coverage Status Bountysource

Habitica 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 organized, refer to Guidance for Blacksmiths.

To set up a local install of Habitica for development and testing on various platforms, see Setting up Habitica Locally.

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