The answer from @prgDevelop returns 0 on my Android Marsmallow. Must return 7200000. These changes make it work fine:
int offset = TimeZone.getTimeZone(Time.getCurrentTimezone()).getRawOffset() + TimeZone.getTimeZone(Time.getCurrentTimezone()).getDSTSavings();