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

result of terseCurrentTime(false) is not ISO 8601 compatible

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 4.8.0
    • Affects Version/s: None
    • Component/s: Logging
    • Fully Compatible
    • ALL
    • Security 2020-09-21

      The time component of a UTC date time object may be separated with : (for the extended format), or with nothing (the basic format).

      When called with the default argument of 'true' the terseCurrentTime function produces the extended format. However, the extended format's use of : as a separator makes it invalid as a filename.

      When called with 'false', terseCurrentTime uses the '-' character to separate the time components, which results in a format which is not compatible with ISO 8601.

      We should either fix the function to remove any separator in the time component when the function is called with 'false', or update the documentation of the function to make clear that it does not produce UTC date times in that case.

      Note that our log file extension currently reflects the results of calling terseCurrentTime with 'false'.

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: