posted 14 years ago
Ok Figured it out..
I override the value set in the java.lang.System.initProperties method by using the -D command-line option when launching JVM,
java -Duser.timezone=EST5EDT
and now new Date() returns correct offset to calculate EDT..
sun.util.calendar.ZoneInfo[id="EST5EDT",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=149,
lastRule=java.util.SimpleTimeZone[id=EST5EDT,offset=-18000000,dstSavings=3600000,useDaylight=true,
startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,
endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]]
Thanks Mike and Paul for looking.
-Himalay