import java.text.DateFormat;
import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.TimeZone;
import static net.ktnx.mobileledger.utils.DimensionUtils.dp2px;
holder.vDelimiter.setVisibility(View.VISIBLE);
holder.tvDelimiterDate.setText(DateFormat.getDateInstance().format(date));
if (item.isMonthShown()) {
- holder.tvDelimiterMonth.setText(Globals.monthNames[date.getMonth()]);
+ GregorianCalendar cal = new GregorianCalendar(TimeZone.getDefault());
+ cal.setTime(date);
+ holder.tvDelimiterMonth
+ .setText(Globals.monthNames[cal.get(GregorianCalendar.MONTH)]);
holder.tvDelimiterMonth.setVisibility(View.VISIBLE);
// holder.vDelimiterLine.setBackgroundResource(R.drawable.dashed_border_8dp);
holder.vDelimiterLine.setVisibility(View.GONE);