Files
habitica/website/server/libs
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
..
2017-04-25 08:28:56 -06:00
2016-09-28 12:11:10 +02:00
2016-09-16 17:18:07 +02:00
2016-09-16 17:18:07 +02:00
2017-05-02 09:17:23 -06:00
2017-06-08 14:07:33 -07:00
2016-09-28 12:11:10 +02:00
2016-10-02 09:16:22 -05:00