public static ZoneId getTimeZoneId ( final TimeZone tz ) { return ZoneId . of ( tz . getID ( ) , ZoneId . SHORT_IDS ) ; }
Get time zone id . ZoneId . SHORT_IDS used get id if time zone is abbreviated like IST .