Skip to content

Instantly share code, notes, and snippets.

@franz-josef-kaiser
Last active December 23, 2015 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franz-josef-kaiser/6699410 to your computer and use it in GitHub Desktop.
Save franz-josef-kaiser/6699410 to your computer and use it in GitHub Desktop.
WPSE - WordPress/PHP Date Debug Plugin

EN If the Gist download doesn't work, you can DOWNLOAD IT HERE as .zip file.


DE Wenn der Download des Gists nicht funktioniert, kannst Du das Plugin als .zip-Datei HIER DOWNLOADEN

<?php
/**
* Plugin Name: WPSE Sysinfo
* Plugin URI: http://wordpress.stackexchange.com/questions/114845/unable-to-select-an-old-date-in-wordpress/115610#115610
* Description: <strong>1.</strong> Create a new post. Save it. <strong>2.</strong>. Set the date to Jan. 1st, 0999, click Update. Ist it saved or changed to the current date? <strong>3.</strong>. Repeat for the date settings for 1899, 2020 and 2039. <strong>4.</strong> Take the information from the plugin output in your admin footer, and update the table.
*/
add_action( 'shutdown', 'wpse_sysinfo' );
function wpse_sysinfo() {
printf (
"<pre style='background: #fff; color: #000;'>PHP: %s | DB: %s | PHP %s-Bit</pre>",
PHP_VERSION,
$GLOBALS['wpdb']->db_version(),
4 === PHP_INT_SIZE ? 32 : 8 === PHP_INT_SIZE ? 64 : PHP_INT_SIZE
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment