Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12731

Time zones always displayed using their daylight savings display name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 18.12.06, 22.01.01
    • None
    • None

    Description

      The timestamp displayed in the ofbiz footer will use the daylight savings display name variant, even when the current date is outside of the daylight savings period.

      See footer of OFBiz: Katalogverwaltung: (apache.org).

      At time of writing this description we are in December. Daylight savings will not begin until March, but the timezone description is reported as British Summer Time.

      Similarly, on the ListTimezones page, https://demo-stable.ofbiz.apache.org/catalog/control/ListTimezones, we see that the 'Europe/London' timezone is also named as British Summer Time.

      The incorrect display of timezone names when outside of a daylight savings period is due to themes/[rainbowstone|flatgrey|helveticus]/template/<includes/>Footer.ftl and themes/common-theme/template/includes/ListTimezones.ftl.

      In these FTL file, there is a call to TimeZone#getDisplayName, passing a boolean to indicate whether the timezone name should refer to daylight savings. A true value is passed if the timezone is currently in a daylight savings period or will transition to daylight savings in future.

      The logic should be changed to test the current time to see if daylight savings is in effect and alter the call to TimeZone#getDisplayName accordingly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              danwatford Daniel Watford
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: