Date date;
TextView leftCol, rightCol = null;
RelativeLayout.LayoutParams params;
- SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm");
+ SimpleDateFormat dateFormat = new SimpleDateFormat(AppContext.getResString(R.string.timeformat_dashboard_vorlesungsplan_time));
int firstLeftColId = 0;
if(events.size() > 0) {
else if(date1DayId == tomorrowDayId)
datetext = AppContext.getResString(R.string.dashboard_calendar_tomorrow);
else {
- int weekdayResIds[] = new int[] { R.string.week_sunday, R.string.week_monday, R.string.week_tuesday, R.string.week_wednesday, R.string.week_thursday, R.string.week_friday, R.string.week_saturday };
- Calendar cal = Calendar.getInstance();
- cal.setTime(eventDate);
- int dow = cal.get(Calendar.DAY_OF_WEEK);
- SimpleDateFormat dateFormat = new SimpleDateFormat("dd.MM");
+ String dayStr = Tools.getWeekdayString(eventDate);
+ SimpleDateFormat dateFormat = new SimpleDateFormat(AppContext.getResString(R.string.timeformat_dashboard_vorlesungsplan_date));
- datetext = AppContext.getResString(weekdayResIds[dow]) + ", " + dateFormat.format(eventDate);
+ datetext = dayStr + ", " + dateFormat.format(eventDate);
}
return datetext;
}