WordPress.org

Make WordPress Core

Ticket #9588: 9588.4.diff

File 9588.4.diff, 631 bytes (added by Denis-de-Bernardy, 9 years ago)

this one needs testing

  • wp-admin/includes/upgrade.php

     
    447447
    448448        $time_difference = $all_options->time_difference;
    449449
    450         $server_time = time()+date('Z');
     450        $server_time = strtotime(gmdate("Y-m-d H:i:s"))+date('Z');
    451451        $weblogger_time = $server_time + $time_difference*3600;
    452         $gmt_time = time();
     452        $gmt_time = strtotime(gmdate("Y-m-d H:i:s"));
    453453
    454454        $diff_gmt_server = ($gmt_time - $server_time) / 3600;
    455455        $diff_weblogger_server = ($weblogger_time - $server_time) / 3600;