Uploaded image for project: 'Domain Models'
  1. Domain Models
  2. DMOD-256

Decide on date field conventions

    XMLWordPrintable

Details

    Description

      In order to support code reuse it might be good to adopt conventions for RMB based modules regarding the naming of time stamp fields and the date format used for date fields.

      Time stamp fields in mod-users are currently named

      openDate (the date the record was created) and
      lastUpdateDate

      In mod-config the same fields are named
      creation_date and
      update_date

      We have agreed on camelCase as the naming standard, but otherwise, now is the time we can decide on a convention, and it does not have to be what was more or less randomly chosen for mod-users (based on the Users Management SIG meta data spread sheet).

      As for the format of dates we have mod-circulation returning dates in what seems to be RFC3339, which is a "a profile of ISO 8601 for use in Internet protocols and standards". (Wikipedia: ISO 8601) (i.e. "2017-05-16T13:14:49Z")

      Dates in mod-users are on the format "1991-07-25T00:00:00.000+0000", which should be another ISO 8601 variation.

      See discussion in MODUSERS-16, where Cate notes that the UM SIG probably prefer some variation of ISO 8601, and Shale notes that mod-circulation is potentially parsing the dates into the RFC3339 profile of ISO 8601, and I note, that the UI currently immediately parses RFC3339 dates coming out of both mod-circulation and mod-users , but seemingly not the ISO 8601 variation coming out of mod-users. Correction - the JavaScript Date parser does in fact parse dates from mod-users just fine.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                shale99 shale99
                nielserik Niels Erik Gilvad Nielsen
                Cate Boerema, David Crossley, István Nagy, Jakub Skoczen, Julian Ladisch, Kurt Nordstrom, Niels Erik Gilvad Nielsen, shale99, Wayne Schneider
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour, 30 minutes
                    1h 30m

                    TestRail: Runs

                      TestRail: Cases