GMT fix from Scott Merrill.

git-svn-id: https://develop.svn.wordpress.org/trunk@1266 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-05-12 07:58:01 +00:00
parent 98e476afc5
commit 5c1eae7460
1 changed files with 3 additions and 1 deletions

View File

@ -315,7 +315,7 @@ case 'editpost':
$mn = ($mn > 59) ? $mn - 60 : $mn; $mn = ($mn > 59) ? $mn - 60 : $mn;
$ss = ($ss > 59) ? $ss - 60 : $ss; $ss = ($ss > 59) ? $ss - 60 : $ss;
$datemodif = ", post_date = '$aa-$mm-$jj $hh:$mn:$ss'"; $datemodif = ", post_date = '$aa-$mm-$jj $hh:$mn:$ss'";
$datemodif_gmt = ", post_date = '".get_gmt_from_date("$aa-$mm-$jj $hh:$mn:$ss")."'"; $datemodif_gmt = ", post_date_gmt = '".get_gmt_from_date("$aa-$mm-$jj $hh:$mn:$ss")."'";
} else { } else {
$datemodif = ''; $datemodif = '';
$datemodif_gmt = ''; $datemodif_gmt = '';
@ -340,8 +340,10 @@ $now_gmt = current_time('mysql', 1);
post_content = '$content', post_content = '$content',
post_excerpt = '$excerpt', post_excerpt = '$excerpt',
post_title = '$post_title'" post_title = '$post_title'"
.$datemodif_gmt
.$datemodif."," .$datemodif.","
.$latlonaddition." .$latlonaddition."
post_status = '$post_status', post_status = '$post_status',
comment_status = '$comment_status', comment_status = '$comment_status',
ping_status = '$ping_status', ping_status = '$ping_status',