Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-37218

Time Zone labels are not sorted according to UTC offset.

    Details

      Description

      Overview

      Time Zone labels are not sorted according to UTC offset.

      The Time Zone labels are generated using timezone ID values in portal property "time.zones".

      However, the Time Zone labels are not sorted by UTC offset; they are displayed according to the ordering of timezone ID values and can appear out of order according to their UTC offset.

      Time Zone labels should be sorted according to UTC offset to make it easier to select the required time zone when scrolling up and down the list.

      Example

      The timezone ID "Australia/Perth " with UTC offset +08:00 is displayed out of order in the Time Zone options on page at

      Control Panel > Portal Settings > Display Settings

      The timezone ID "Australia/Perth" should appear in the Time Zone list according to UTC offset as follows:

      . . . 
      (UTC +08:00) China Standard Time 
      (UTC +08:00) Western Standard Time (Australia)
      (UTC +09:00) Japan Standard time
      . . . 
      

      However, it appears out of order according to UTC offset as follows:

      . . . 
      (UTC +08:00) China Standard Time 
      (UTC +09:00) Japan Standard time
      . . . 
      (UTC +10:00) Eastern Standard Time (Australia)
      . . . 
      (UTC +08:00) Western Standard Time (Australia)
      . . . 
      

      Sample Time Zones in Portal Properties

          #
          # Specify the available time zones. The specified ids must match those from
          # the class java.util.TimeZone.
          #
          time.zones=\
              Pacific/Midway,\
              Pacific/Honolulu,\
              America/Anchorage,\
              America/Los_Angeles,\
              America/Denver,\
              America/Chicago,\
              America/New_York,\
              America/Caracas,\
              America/Puerto_Rico,\
              America/St_Johns,\
              America/Sao_Paulo,\
              America/Noronha,\
              Atlantic/Azores,\
              UTC,\
              Europe/Lisbon,\
              Europe/Paris,\
              Europe/Istanbul,\
              Asia/Jerusalem,\
              Asia/Baghdad,\
              Asia/Tehran,\
              Asia/Dubai,\
              Asia/Kabul,\
              Asia/Karachi,\
              Asia/Calcutta,\
              Asia/Katmandu,\
              Asia/Dhaka,\
              Asia/Rangoon,\
              Asia/Saigon,\
              Asia/Shanghai,\
              Asia/Tokyo,\
              Asia/Seoul,\
              Australia/Adelaide,\
              Australia/Brisbane,\
              Australia/Broken_Hill,\
              Australia/Darwin,\
              Australia/Eucla,\
              Australia/Hobart,\
              Australia/Lord_Howe,\
              Australia/Melbourne,\
              Australia/Perth,\
              Australia/Sydney,\
              Australia/Tasmania,\
              Pacific/Guadalcanal,\
              Pacific/Auckland,\
              Pacific/Enderbury,\
              Pacific/Kiritimati
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 5 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3