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

time_support.cpp: dateFromISOString rejects leap seconds

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • ALL
    • SP Prioritized List
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This parser enforces ranges on each time field.

      The range for seconds is incorrectly specified as [0,59].

      When a positive a leap second occurs, one minute will have a 61st second.
      The seconds field will have a value of 60, and dateFromISOString will fail to parse it.

            Assignee:
            Unassigned Unassigned
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: