Make WordPress Core

Ticket #2542: admin-functions.php.diff

File admin-functions.php.diff, 651 bytes (added by masquerade, 19 years ago)
  • wp-admin/admin-functions.php

     
    7575                $hh = ($hh > 23) ? $hh -24 : $hh;
    7676                $mn = ($mn > 59) ? $mn -60 : $mn;
    7777                $ss = ($ss > 59) ? $ss -60 : $ss;
    78                 $_POST['post_date'] = "$aa-$mm-$jj $hh:$mn:$ss";
    79                 $_POST['post_date_gmt'] = get_gmt_from_date("$aa-$mm-$jj $hh:$mn:$ss");
     78                $_POST['post_date'] = sprintf("%04d-%02d-%02d %02d:%02d:%02d", $aa, $mm, $jj, $hh, $mn, $ss);
     79                $_POST['post_date_gmt'] = get_gmt_from_date($_POST['post_date']);
    8080        }
    8181
    8282        // Create the post.