The SEO Framework

★︎ My account
  • Extensions
  • Documentation
  • Pricing
  1. Home
  2. Plugin Changelog
  3. 4.0.4

4.0.4

November 21, 2019 by Sybre Waaijer

WordPress 5.3 has a bug where the timezone set in PHP is taken into account when creating permalinks. Since this bug can cause canonical URLs with dates to point to a nonexistent page, we’re sending out this patch where TSF sets the timezone to flat UTC for its front-end generation.

The proper fix in WordPress 5.3.1 is due in about three weeks from now, after which we’ll consider reverting these changes.

Detailed log

> View code changes.
> View closed issues.

For everyone

  • Changed:
    • The plugin now handles the UTC timezone in its sitemap and front-end generation.
  • Fixed:
    • Patched a bug that causes permalinks with dates to point to a wrong URL.

For developers

  • the_seo_framework()->set_timezone() now also unsets the stored timezone string on reset.
  • the_seo_framework()->gmt2date() now uses gmdate() instead of date().
  • the_seo_framework()->html_output() now always sets the timezone regardless of settings, enforcing UTC.
Filed Under: The SEO Framework Changelog

About Sybre Waaijer

Developer of The SEO Framework plugins.
Twitter  GitHub  WordPress

Looking for something?

Do more with extensions

Incognito

View extension
Hide our markings from plain sight.

Transport

View extension
Let's start moving.

Get Extension Manager

Commercial

The SEO Framework
Trademark of CyberWire B.V.
Leidse Schouw 2
2408 AE Alphen a/d Rijn
The Netherlands
KvK: 83230076
BTW/VAT: NL862781322B01

Twitter  GitHub

Professional

Pricing
About
Support
Press

Rational

Blog
Privacy Policy
Terms and Conditions
Refund Policy

Practical

Documentation
TSF on WordPress
TSF on GitHub
TSFEM on here
TSFEM on GitHub
Feature Highlights

Keywords in 2025 › The SEO Framework