Use local time when determining uploads directory, props DD32, see #8205
git-svn-id: https://develop.svn.wordpress.org/trunk@9676 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
04ce1eb950
commit
f2af510550
@ -174,7 +174,7 @@ win.send_to_editor('<?php echo addslashes($html); ?>');
|
||||
function media_handle_upload($file_id, $post_id, $post_data = array()) {
|
||||
$overrides = array('test_form'=>false);
|
||||
|
||||
$time = current_time('mysql', true);
|
||||
$time = current_time('mysql');
|
||||
if ( $post = get_post($post_id) ) {
|
||||
if ( substr( $post->post_date, 0, 4 ) > 0 )
|
||||
$time = $post->post_date;
|
||||
|
Loading…
Reference in New Issue
Block a user