Imported content has created date Jan 1, 1970

Created on 29 December 2017, over 6 years ago
Updated 20 October 2023, 8 months ago

Content that I've exported, then imported on a fresh site install appears to revert to beginning of the unix epoch. Looking at some content that was exported previously 8.x-1.0-alpha7, and appears to use the correct created/updated date, that content uses a standard unix timestamp:

    "created": [
        {
            "value": 1477671034,
            "lang": "en"
        }
    ],
    "changed": [
        {
            "value": 1477671034,
            "lang": "en"
        }
      ],

However, content exported using the latest 8.x-1.0-alpha7 version uses a defined format that follows more closely to an ISO standard.

    "created": [
        {
            "value": "2017-03-31T15:38:17+00:00",
            "lang": "en",
            "format": "Y-m-d\\TH:i:sP"
        }
    ],
    "changed": [
        {
            "value": "2017-06-30T13:38:09+00:00",
            "lang": "en",
            "format": "Y-m-d\\TH:i:sP"
        }
    ],
πŸ› Bug report
Status

Closed: outdated

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bburg Washington D.C.

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡«πŸ‡·France frondeau Nantes, FRANCE

    Hi the default_content team,
    As there's no more feedback on this ticket for 6 years, and it seems that the dates values are depending on the website configuration and not the code, I propose to close it.
    Regards.

  • Status changed to Closed: outdated 8 months ago
  • πŸ‡«πŸ‡·France frondeau Nantes, FRANCE
Production build 0.69.0 2024