Skip to content

When postgres datestyle is set to SQL, DMY all created_at and updated_at dates are returning null #6783

@MSLacerda

Description

@MSLacerda

Describe the bug

Using postgres datestyle config set to SQL, DMY all dates used in strapi are returned as null in api and admin-ui.

Steps to reproduce the behavior

  1. Set postgres datestyle to SQL, DMY
  2. Create new project on strapi
  3. Create a content type and add a entry
  4. Make a api request or in collection table in admin visualize the created_at column

Expected behavior

The date fields must return values, actually the attributes created_at and updated_at are returning only null values.

Screenshots
image

image

In database:

image

System

  • Node.js version: v12.18.0
  • NPM version: 6.14.4
  • Strapi version: 3.0.4
  • Database: Postgres
  • Operating system: Linux Mint and strapi/base docker image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions