Pad post_date elements. Props: masquerade. fixes #2542

git-svn-id: https://develop.svn.wordpress.org/trunk@3632 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-03-07 21:00:38 +00:00
parent ba91d6a3da
commit 9da2338021
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ function write_post() {
$hh = ($hh > 23) ? $hh -24 : $hh;
$mn = ($mn > 59) ? $mn -60 : $mn;
$ss = ($ss > 59) ? $ss -60 : $ss;
$_POST['post_date'] = "$aa-$mm-$jj $hh:$mn:$ss";
$_POST['post_date_gmt'] = get_gmt_from_date("$aa-$mm-$jj $hh:$mn:$ss");
$_POST['post_date'] = sprintf("%04d-%02d-%02d %02d:%02d:%02d", $aa, $mm, $jj, $hh, $mn, $ss);
$_POST['post_date_gmt'] = get_gmt_from_date($_POST['post_date']);
}
// Create the post.