Changeset 4883

Show
Ignore:
Timestamp:
02/14/07 22:45:30 (1 year ago)
Author:
markjaquith
Message:

Prevent double timezone offset when saving titleless AJAX-created drafts. fixes #3701

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.1/wp-admin/admin-ajax.php

    r4760 r4883  
    156156        die('-1'); 
    157157    if ( $id < 0 ) { 
    158         $now = current_time('timestamp'); 
     158        $now = current_time('timestamp', 1); 
    159159        if ( $pid = wp_insert_post( array( 
    160160            'post_title' => sprintf('Draft created on %s at %s', date(get_option('date_format'), $now), date(get_option('time_format'), $now))