Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-81595

resmoke incorrectly reports datetimes using 'Z' suffix even when local timepoint is not from UTC

    • Correctness
    • Fully Compatible
    • ALL

      The changes from 8022d88 as part of SERVER-54723 removed the ability for resmoke to report timepoints as relative offsets from UTC when the host machine isn't configured to have its timezone set to Etc/UTC. Instead resmoke always reports the local timepoint with a 'Z' suffix implying Zulu time incorrectly. This behavior is confusing because not all Evergreen hosts have their timezone set to Etc/UTC and leads to situations where the hour numbers in the datetime don't match up resmoke in the task logs and the MongoDB Server processes.

      Steps to reproduce
      $ sudo timedatectl set-timezone Etc/UTC
      $ python buildscripts/resmoke.py run --suite core -n | grep 'Tests that would be run in suite'
      [executor] 20:34:58.318Z Tests that would be run in suite core
      $ sudo timedatectl set-timezone America/New_York
      $ python buildscripts/resmoke.py run --suite core -n | grep 'Tests that would be run in suite'
      [executor] 16:35:13.482Z Tests that would be run in suite core
      

            Assignee:
            steve.mcclure@mongodb.com Steve McClure
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: