private int getOffset(TimeZone zone, long millis) {
        Date date = new Date(millis);
        if (zone.inDaylightTime(date)) {
            return zone.getRawOffset() + 3600000;
        }
        return zone.getRawOffset();
    }