fix testTruncate_dayOfWeek failing with some locales

This commit is contained in:
Luboš Luňák
2017-09-18 23:13:53 +02:00
committed by Alinson Xavier
parent 318caa886c
commit e052a144bd

View File

@@ -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;
}