Ticket #2542: admin-functions.php.diff
File admin-functions.php.diff, 651 bytes (added by , 19 years ago) |
---|
-
wp-admin/admin-functions.php
75 75 $hh = ($hh > 23) ? $hh -24 : $hh; 76 76 $mn = ($mn > 59) ? $mn -60 : $mn; 77 77 $ss = ($ss > 59) ? $ss -60 : $ss; 78 $_POST['post_date'] = "$aa-$mm-$jj $hh:$mn:$ss";79 $_POST['post_date_gmt'] = get_gmt_from_date( "$aa-$mm-$jj $hh:$mn:$ss");78 $_POST['post_date'] = sprintf("%04d-%02d-%02d %02d:%02d:%02d", $aa, $mm, $jj, $hh, $mn, $ss); 79 $_POST['post_date_gmt'] = get_gmt_from_date($_POST['post_date']); 80 80 } 81 81 82 82 // Create the post.