'Whats wrong with my date/timezone using this DateUtil?
I never seem to have the value that I am expecting. I want to pass in a timezone and get the correct time back and it never seems quite right. What am I doing wrong here?
long timezoneOffset = DateUtil.getTimeZoneOffset(aTimezone);
Calendar rangeStart = DateUtil.getCalendarByMillisInTimezone(event.getStartDate().getTimeInMillis() -timezoneOffset , timezone);
Calendar rangeEnd = DateUtil.getCalendarByMillisInTimezone(event.getEndDate().getTimeInMillis()-timezoneOffset, timezone);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
