The DateChanger plugin provides the ability to change the date and time a post is created at.

Unfortunately in its current form the date and time is obtained via a call to time() that returns the system time.

Many FlatPress installations will be working off of a local time as set in the Options \ International Settings panel.

To pick up this local time the call to time should be changed to date_time(), as follows...

...
function plugin_datechanger_toolbar() {

    $time = date_time();

    $h = date('H', $time);
    $m = date('i', $time);
...
August 11, 2010

Add a comment