The blog of Ross Fruen, a .NET consultant

Changes to DateChanger plugin for FlatPress

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);

Add a comment

If you want your comment to appear on this page please complete the form below. Your name and email address are optional, although the latter will be required if you want a response. Your email address will not appear against your comment and will only be used to correspond with yourself (where appropriate).


Thank you for submitting your comment, it will appear here after moderation is complete.


There was a problem sending your comment, please try again.