Uploaded image for project: 'CloverDX'
  1. CloverDX
  2. CLO-19647

Make API datetime format stable - do not cut off millis

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: rel-5-8-0
    • Component/s: None
    • Security Level: Users (General product issues)

      Description

      Datetime format in the returned JSON is not stable. It cuts off millis if they are 0.

      Most notably the format changes in failingSince field.
      On mysql we don't store millis, so the returned datetime has value e.g. 2020-09-01T14:14:40Z
      On other DBs we store millis, so the returned datetime has value e.g. 2020-09-01T14:14:40.458Z

      Even with DBs that store millis, they are probably omitted in the returned JSON completely if they are 000.

      Make the datetime format stable. Millis should always be present - even if they are 000.

        Attachments

          Activity

            People

            Assignee:
            horskyt Tomas Horsky
            Reporter:
            salamonp Pavel Salamon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: