From dd330c0ba94c0dad34f2b3f2ffcf69af243a3cc5 Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 14 Nov 2008 03:56:09 +0000 Subject: [PATCH] Use local time when determining uploads directory, props DD32, see #8205 git-svn-id: http://svn.automattic.com/wordpress/trunk@9676 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 0aecb080ea..6e123d566d 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -174,7 +174,7 @@ win.send_to_editor(''); 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;