Build timestamps do not follow Bamboo server timezone

XMLWordPrintable

    • 5
    • Severity 3 - Minor
    • 1

      Problem

      Build timestamps in logs and on the server UI are inconsistent when Server and Agents have different TZs

      Is it reproducible on Bamboo Data Center?

      Environment

      Bamboo 8

      Steps to Reproduce

      1. Configure a Bamboo server with a timezone
      2. Configure a Bamboo agent with a different timezone from the Server
      3. Run a build on the Bamboo Agent
      4. Check the build logs for different timezones in the timestamps
      5. Check the build dashboard, it will always refer to the Agent TZ

      The timezone can be either inherited from the operating system or forced by a Java user.timezone property

      Expected Results

      Bamboo should follow a single timezone on the UI and in the logs, preferably the one used on the server.

      Actual Results

      1. On the build logs, different timezones will pop up on the same log file; being part from the server TZ and part from the agent TZ
        Agent is Australia/Sydney, Server is Pacific/Honolulu
        ...
        simple	19-Jul-2022 17:25:13	Finished task 'Create tag' with result: Success
        simple	19-Jul-2022 17:25:13	Running post build plugin 'Docker Container Cleanup'
        simple	19-Jul-2022 17:25:13	Running post build plugin 'NCover Results Collector'
        simple	19-Jul-2022 17:25:13	Running post build plugin 'Build Results Label Collector'
        simple	19-Jul-2022 17:25:13	Running post build plugin 'Clover Results Collector'
        simple	19-Jul-2022 17:25:13	Running post build plugin 'npm Cache Cleanup'
        simple	19-Jul-2022 17:25:13	Running post build plugin 'Artifact Copier'
        simple	19-Jul-2022 17:25:13	Finalising the build...
        simple	19-Jul-2022 17:25:13	Stopping timer.
        simple	19-Jul-2022 17:25:13	Build DEF-BIG1-JOB1-2 completed.
        simple	18-Jul-2022 21:25:14	Running on server: post build plugin 'Build Hanging Detection Configuration'
        simple	18-Jul-2022 21:25:14	Running on server: post build plugin 'NCover Results Collector'
        simple	18-Jul-2022 21:25:14	Running on server: post build plugin 'Build Labeller'
        simple	18-Jul-2022 21:25:14	Running on server: post build plugin 'Clover Delta Calculator'
        simple	18-Jul-2022 21:25:14	Running on server: post build plugin 'Maven Dependencies Postprocessor'
        simple	18-Jul-2022 21:25:14	All post build plugins have finished
        ...
        
      2. On the Bamboo build dashboard, the shown timestamp will always refer to the Agent's timezone and may create confusion if showing a future date in case the Server TZ is way behind the server's.
        E.g Both screenshots are for the same build, the Build result summary reports 18/07, whilst the Recently built dashboard reports 19/07
        Server TZ: Pacific/Honolulu Agent TZ: Australia/Sydney

      Workaround

      Use the same timezone on both Bamboo Server and Agents

            Assignee:
            Unassigned
            Reporter:
            Eduardo Alvarenga (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: