Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72470

timezone offset ignores DST in builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • timestamper-plugin
    • None

      if you view a build that was built when in a DST offset when not currently in a DST offset the timestamp time (when using use "Use browser timezone") is off by one.

      the same is true if the inverse occurs (a build was done when not in a DST offset and you are currently in DST offset).

      The time printed when using the local timezone should be the actual time that it took place in the local timezone according to any DST rules that are in place at the time.

       

      E.g. with browser set to Europe/London (currently no DST offset so UTC+1) view

      https://weekly.ci.jenkins.io/job/pipeline/3/console    (note this build was started Build #3 (7 Jul 2023, 16:30:06 BST , aka 7 Jul 2023, 15:30:06 UTC)

      Note the timestamps are showing `15:30:06` in the console whereas the local time is infact 16:30:06 .

      changing to use a zone that has a larger starndard offset from UTC will show the miscalulation more pronounced.

       

       

            Unassigned Unassigned
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: