private TimeZone getTimeZoneForOffset ( int offset ) { if ( offset == 0 ) { // when offset is 0, we should use "Etc/GMT" return TimeZone . getTimeZone ( TZID_GMT ) ; } return ZoneMeta . getCustomTimeZone ( offset ) ; }
Creates an instance of TimeZone for the given offset