getOffset(new Date().getTime()) in each of those situations instead of tz. getRawOffset() . This was actually the first thing that I tried, because ...
stackoverflow.com