I'm parsing a comma delimited file that has two field I need to convert to a timestamp. I get a date, and a separate field gives me minutes passed midnight... for instance:
10/15/2020, 360
now 360, for most days, would be 6am (360/60 = 6) but on DST says it could be either 5 or 7. The problem is I'm always expected to output 6am even when it's a DST day.
Calendar cal = Calendar.getInstance();
cal.setTime(schedDate);
cal.add(Calendar.MINUTE, Integer.parseInt(minutes));
return new Timestamp(cal.getTimeInMillis());
I've tried adding the following:
cal.set(cal.DST_OFFSET, 0);
but that doesn't seem to fix the issue. I'm not sure if calendar has any built in functionality to disable DST offsets, but any suggestions would be appreciated