Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      2
    • Fix Priority:
      4

      Description

      Reproduction steps:
      1. Add Calendar Portlet to a page
      2. Check if the Day and Day of Week are correct
      3. Go to Control Panel -> My Account -> Display Settings and try different the Time Zones.
      4. Go back and check if the Day of Week text has been changed

      Please note that the Days of Week text could be correct depending when you look at the Calendar portlet and which time zone is selected.

      See the attached screenshot.

        Issue Links

          Activity

          Hide
          akos.thurzo Akos Thurzo added a comment -

          Root cause: /portal-trunk/portal-web/docroot/html/portlet/calendar/summary.jspf contains the following code to calculate the Day of Week text:

          summary.jspf
           <div class="day-text"><%= DateUtil.getDate(Time.getDate(selCal), "EEEE", locale, timeZone) %></div>
          

          Time.getDate adjusts the date which causes the mismatch.

          Resolution: Change Time.getDate(selCal) to selCal.getTime().

          Show
          akos.thurzo Akos Thurzo added a comment - Root cause: /portal-trunk/portal-web/docroot/html/portlet/calendar/summary.jspf contains the following code to calculate the Day of Week text: summary.jspf <div class= "day-text" ><%= DateUtil.getDate(Time.getDate(selCal), "EEEE" , locale, timeZone) %></div> Time.getDate adjusts the date which causes the mismatch. Resolution: Change Time.getDate(selCal) to selCal.getTime().
          Hide
          he.song Serena Song (Inactive) added a comment - - edited

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

          Day of Week text on Summary tab incorrect in Calendar Portlet.

          Fixed on:
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: cc7492b78c23766285f1d8bd36e395e2dccd7f26.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0748de743727f979e72c9b2ece56c94510226bd0.

          Day of Week text on Summary tab correct in Calendar Portlet.

          Show
          he.song Serena Song (Inactive) added a comment - - edited PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. Day of Week text on Summary tab incorrect in Calendar Portlet. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: cc7492b78c23766285f1d8bd36e395e2dccd7f26. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 0748de743727f979e72c9b2ece56c94510226bd0. Day of Week text on Summary tab correct in Calendar Portlet.

            People

            • Assignee:
              he.song Serena Song (Inactive)
              Reporter:
              akos.thurzo Akos Thurzo
              Participants of an Issue:
              Recent user:
              Randy Zhu (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 12 weeks, 1 day ago

                Development

                  Subcomponents