Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-60839

Data in All logs chart and graph displayed one day early after DST

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.3.1, 3.4, 3.8.6, 3.9.25, 4.3.3
    • Reports
    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_403_STABLE

      DESCRIPTION

      The "All logs" report available from a user's profile presents the user's activity in three formats a bar graph, a chart (collapsed by default), and list of detailed log activity.  The graph and chart present aggregate data grouped by day.  When the user viewing the report has his or her timezone set to a time zone which observes daylight savings time (DST), activity occurring after DST ends (Nov 5) is presented on the wrong date in the chart and graph.  The activity is presented one day before the activity actually occurred. 

       

      STEPS TO REPLICATE

      NOTE: This issue is best illustrated using an user who has some activity from before and after November 5th, but can still be replicated with a new user.

       

      1. Select a user for testing.  If available, select a user known to have activity from prior to November 5th.   If the user does not have any activity since November 5th, log in with the user and click around a bit to generate some new activity.
      2. Go to your own user profile and set your timezone to one which does NOT observe daylight savings time, such as America/Bogota. 
      3. Go to the user profile of the user selected for testing.
      4. Click the "All Logs" link in the Reports section.
      5. Review the detailed logs to identify the days for which the user had activity.  Now compare this to the data presented in the chart and graph.  You should observe that the chart and graph report activity for the same days as the detailed log information for activity both before and after November 5th.
      6. Return to your user profile and change your timezone to one which observes daylight savings time, such as America/New York.
      7. Return to the All logs report for the same user.

       

      OBSERVED BEHAVIOR:

      Activity prior to November 5th, displays on the correct data in the graph and chart.  However, activity since November 5th is presented in the graph and chart on the day prior to when the activity actually occurred.

       

      EXPECTED BEHAVIOR:

      The graph and chart data on the All logs report accurately presents activity on the correct date regardless of the activity occurring before or after daily light savings time ended.

       

            Unassigned Unassigned
            brian.winstead Brian Winstead
            Votes:
            23 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.