-
Something is amiss when trying to administer blog posts after an upgrade to Mezzanine 5.1.3 (and Django 2.2.27) which involved a db switch from PostgreSQL to MariaDB (due to Django requirement of psql minimum version 9.4) via DatabaseError at /admin/blog/blogpost/(1292, "1292: Incorrect datetime value: '%Y-01-01'", None) Request Method: GET Expand tracebackRequest info:
Settings:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
From the traceback it looks like the dates were exported incorrectly by Postgres or imported incorrectly by MySQL. First, if the problem was Postgres, then you should be able to fix the errors by re-exporting the data or manually editing the JSON file produced by If that doesn't work or is not feasible I would recommend transferring the database records directly without using Django (no |
Beta Was this translation helpful? Give feedback.
-
The issue seems to lie with missing timezone data in my shared hosting MySQL server (which I can't import myself): |
Beta Was this translation helpful? Give feedback.
The issue seems to lie with missing timezone data in my shared hosting MySQL server (which I can't import myself):
https://docs.djangoproject.com/en/2.2/ref/databases/#time-zone-definitions