I have this piece of code for a client in Eastern time zone:
public DateTime getActivityDate() {
return new DateTime(activityDate, DateTimeZone.UTC).minusHours(5);
}
The client was reporting it was working until the time change back in November. Now they are reporting they are seeing the times as " 1 hour ahead of Eastern time zone."
Is there any way I can get this working for both davelight savings time and standard time instead of hardcoding it as minusHours(5) and minusHours(6)?