You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resulting datePublished will be wrongly comprised of a datetime local to GMT combined with a not zero offset.
The solution is to remove the _gmt parts from the properties:
Note that this bug only occurs in WP 5.3 and above, as mysql2date() now makes use of the wp_timezone() function (introduced in WP 5.3) that returns the site's timezone setting.
As the WordPress's
mysql2date()
PHP doc says:$date is expected to be local time in MySQL format ('Y-m-d H:i:s').
Please note "local time", not GMT time.
Whereas the AMP plugin uses the GMT values instead, resulting in wrong values in datePublished and dateModified attributes of schemaorg metadata:
The resulting datePublished will be wrongly comprised of a datetime local to GMT combined with a not zero offset.
The solution is to remove the
_gmt
parts from the properties:The text was updated successfully, but these errors were encountered: