I checked this test, and indeed, Febraury 2018 has different set of weekdays (4 mon, 4 tues, 4 weds, 4 fris, 4 sat, 4 suns).
The problem is that GregorianCalendar returns Time Zone dependent date, and in my case it was returning a one day before actual date.
Pre-submission checklist
Description
During the execution of
DateUtilsTest. getWeekdaysInMonth[jvm]
, the test fails. The rough description of the test is:I checked this test, and indeed, Febraury 2018 has different set of weekdays (4 mon, 4 tues, 4 weds, 4 fris, 4 sat, 4 suns). The problem is that
GregorianCalendar
returns Time Zone dependent date, and in my case it was returning a one day before actual date.Steps to reproduce
Run
./build.sh build debug
commandSystem information
Screenshots
Calendar 2018 February:![image](https://github.com/iSoron/uhabits/assets/28221162/15ddb3aa-912e-426a-8a85-6f51fc4057b1)
Source of error:![image](https://github.com/iSoron/uhabits/assets/28221162/ee7509ca-6b23-4c38-b8da-e32ae93b3cf1)
And the rest of calendar tests