Documentation: jsonld - normalize - date format

Created on 13 Apr 2017  路  3Comments  路  Source: Islandora/documentation

hal_json and json return date values as Unix-timestamp. I.e below

  "created": [
    {
      "value": "1491930286"
    }
  ],
  "changed": [
    {
      "value": "1491930286"
    }
  ],

jsonld returns the date values in different format.

      "http://schema.org/dateCreated": [
        {
          "@value": "2017-04-11T17:04:46+00:00"
        }
      ],
      "http://schema.org/dateModified": [
        {
          "@value": "2017-04-11T17:04:46+00:00"
        }
      ],

Is this the expected behaviour?

This can cause an issue denormalize as denormalize generally expects a Unix-timestamp.

All 3 comments

Expected.

I would say yes this is expected and we will need to handle it in the normalize/denormalize functions.

@DiegoPino @whikloj ok, please close the ticket.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruebot picture ruebot  路  3Comments

akuckartz picture akuckartz  路  3Comments

acoburn picture acoburn  路  4Comments

DiegoPino picture DiegoPino  路  5Comments

dannylamb picture dannylamb  路  5Comments