mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11562 Support for building Java TZ objects from non-DST iCal timezones, with tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32748 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -45,18 +45,17 @@ public class CalendarRecurrenceHelper
|
||||
{
|
||||
private static Log logger = LogFactory.getLog(CalendarRecurrenceHelper.class);
|
||||
|
||||
private static Map<String,Integer> d2cd;
|
||||
static
|
||||
{
|
||||
d2cd = new HashMap<String, Integer>();
|
||||
d2cd.put("SU", Calendar.SUNDAY);
|
||||
d2cd.put("MO", Calendar.MONDAY);
|
||||
d2cd.put("TU", Calendar.TUESDAY);
|
||||
d2cd.put("WE", Calendar.WEDNESDAY);
|
||||
d2cd.put("TH", Calendar.THURSDAY);
|
||||
d2cd.put("FR", Calendar.FRIDAY);
|
||||
d2cd.put("SA", Calendar.SATURDAY);
|
||||
}
|
||||
@SuppressWarnings("serial")
|
||||
protected final static Map<String,Integer> d2cd =
|
||||
Collections.unmodifiableMap(new HashMap<String, Integer>() {{
|
||||
put("SU", Calendar.SUNDAY);
|
||||
put("MO", Calendar.MONDAY);
|
||||
put("TU", Calendar.TUESDAY);
|
||||
put("WE", Calendar.WEDNESDAY);
|
||||
put("TH", Calendar.THURSDAY);
|
||||
put("FR", Calendar.FRIDAY);
|
||||
put("SA", Calendar.SATURDAY);
|
||||
}});
|
||||
|
||||
/**
|
||||
* The lookup from the day strings to Calendar Day entries
|
||||
|
Reference in New Issue
Block a user