Article version: Enterprise Server 2.15

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-10-16. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Page build failed: Date is not a valid datetime

If your GitHub Pages repository contains a page which displays an invalid datetime, your GitHub Pages site will not build.

If your GitHub Pages site fails to build because of an invalid datetime, you'll get an email that looks like this:

Subject: Page build failed

The page build failed with the following error:

The value ' was passed to a date-related filter that expects valid dates in `example.md` or one of its layouts

You will only receive an email if outbound email support is enabled on your Enterprise instance. For more information, contact your site administrator.

Troubleshooting invalid datetimes

Tip: We strongly recommend running Jekyll locally so you can easily debug and fix build errors before pushing to your GitHub Enterprise Server instance. To learn more about troubleshooting options, see "Troubleshooting GitHub Pages builds."

Once you've fixed any invalid datetimes, trigger another build on the server by committing and pushing your changes to your GitHub Pages repository.

Ask a human

Can't find what you're looking for?

Contact us