SQL-ZERO-DATE-001

'0000-00-00 00:00:00'

0000-00-00 dates

MySQL strict mode (the Joomla 4+ default) rejects the zero date. Inserts and upgrades fail with Incorrect DATETIME value.

'0000-00-00 00:00:00'NULL

Dies at Joomla 3 → 4J3: Works nativelyJ4: Removed — fatalJ6: Removed — fatalBC plugin: no — already dead on J4Patch possible — review itSQL / schema

What you will see

  • Incorrect DATETIME value: '0000-00-00 00:00:00'
  • Incorrect DATE value: '0000-00-00'

Symptoms people search

cannot save article · install sql fails on mysql 8 · zero date

Replace this code

Swap '0000-00-00 00:00:00' for NULL.

Joomla 3

Remove or stop calling this

`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00'

Joomla 4 / 6

Use this instead

`created` datetime NULL DEFAULT NULL

How to fix it

  1. 1Change columns to NULL default NULL.
  2. 2Stop writing '0000-00-00' from PHP — use null.
  3. 3UPDATE existing rows to NULL before the schema change if needed.

Also known as

0000-00-00 · zero date · invalid datetime

Related issues

Get in touch

Have a project in mind? Let's talk about it.

Tell us what you're building. Whether it's a new site, an online store, a mobile app, or something that needs AI under the hood, we'll get back to you within a business day.

Free consultation
No commitment, no pressure
Reply within 24 hours
Usually much faster

Prefer a direct conversation?

Request a project quote

Tell us about your project

Fill out the quick form and we'll reach out.