Class TimeZoneUtil


  • public class TimeZoneUtil
    extends Object
    Author:
    silveryocha
    • Method Detail

      • toZoneId

        public static ZoneId toZoneId​(String timeZoneId)
        Gets the zone id instance from a time zone id which could be different than the registered identifiers of ZoneId.getAvailableZoneIds() instances.
        If not registered, the zone identifier is search into a property file: org.silverpeas.util.timezone.properties
        The mapping comes from this source.
        Parameters:
        timeZoneId - a time zone identifier as string.
        Returns:
        the corresponding ZoneId instance.