Legacy Knowledge Base
Published Jul. 2, 2025

Time Zones in Australia

Written By

Brian Suh

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • By default, Liferay only displays a few Australian time zones that do not account for regional rules related to daylight savings time.
  • How can we adjust Liferay's time zones in order to reflect Australia's regional time zone rules?
  • For example, Brisbane (Queensland) will remain on AEST (UTC+10:00) throughout the year, whereas Sydney (New South Wales) observes daylight savings time and shifts to AEDT (UTC+11:00) in October.

Environment

  • Liferay DXP 7.0, 7.1, 7.2, 7.3

Resolution

  • Liferay's time.zones property can be adjusted to include various regions in Australia
  • The following list reflects all of the available canonical Australian time zones by java.util.TimeZone ID:
    • Australia/Adelaide
    • Australia/Brisbane
    • Australia/Broken_Hill
    • Australia/Darwin
    • Australia/Eucla
    • Australia/Hobart
    • Australia/Lord_Howe
    • Australia/Melbourne
    • Australia/Perth
    • Australia/Sydney
  • In practice, if we want to update the existing list of time zones and append all of Australia's time zones, we can add the following property to portal-ext.properties:
time.zones=\
Pacific/Midway,\
Pacific/Honolulu,\
America/Anchorage,\
America/Los_Angeles,\
America/Phoenix,\
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,\
Pacific/Guadalcanal,\
Pacific/Auckland,\
Pacific/Enderbury,\
Pacific/Kiritimati
  • Once this change has been made, we can see that the aforementioned time zones are included in the Time Zone selector in Liferay DXP

 

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base