just moving these two lines fixes the the_date() issue for GMT

git-svn-id: http://svn.automattic.com/wordpress/trunk@934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-02-25 17:12:30 +00:00
parent 5cb552277e
commit 3c710bb037
1 changed files with 2 additions and 2 deletions

View File

@ -1127,6 +1127,8 @@ function start_wp() {
);
}
$authordata = get_userdata($post->post_author);
$post->post_date_gmt = $post->post_date;
$post->post_date = get_date_from_gmt($post->post_date);
$day = mysql2date('d.m.y', $post->post_date);
$currentmonth = mysql2date('m', $post->post_date);
$numpages = 1;
@ -1149,8 +1151,6 @@ function start_wp() {
$pages[0] = stripslashes($post->post_content);
$multipage = 0;
}
$post->post_date_gmt = $post->post_date;
$post->post_date = get_date_from_gmt($post->post_date);
return true;
}