mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
fix testTruncate_dayOfWeek failing with some locales
This commit is contained in:
@@ -69,7 +69,7 @@ public abstract class DateUtils
|
||||
private static GregorianCalendar getCalendar(long timestamp)
|
||||
{
|
||||
GregorianCalendar day =
|
||||
new GregorianCalendar(TimeZone.getTimeZone("GMT"));
|
||||
new GregorianCalendar(TimeZone.getTimeZone("GMT"), getLocale());
|
||||
day.setTimeInMillis(timestamp);
|
||||
return day;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user