Changeset 2969

Show
Ignore:
Timestamp:
10/28/05 04:34:49 (3 years ago)
Author:
ryan
Message:

If post_date_gmt is not supplied, derive it from post_date instead of current time.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions-post.php

    r2953 r2969  
    5858        $post_date = current_time('mysql'); 
    5959    if (empty($post_date_gmt))  
    60         $post_date_gmt = current_time('mysql', 1); 
     60        $post_date_gmt = get_gmt_from_date($post_date); 
    6161 
    6262    if ( empty($comment_status) ) {