Pad post_date elements. Props: masquerade. fixes #2542

git-svn-id: http://svn.automattic.com/wordpress/trunk@3632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-03-07 21:00:38 +00:00
parent 7b406ed7e0
commit e7feb40925

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.