Ensure that the resulting post time is localized after the date is changed. props SergeyBiryukov. fixes #24072.

git-svn-id: http://core.svn.wordpress.org/trunk@24046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin
2013-04-22 19:04:02 +00:00
parent b8805d7f22
commit d095eac796
3 changed files with 10 additions and 7 deletions

View File

@@ -483,11 +483,12 @@ jQuery(document).ready( function($) {
} else {
$('#timestamp').html(
publishOn + ' <b>' +
$('option[value="' + $('#mm').val() + '"]', '#mm').text() + ' ' +
jj + ', ' +
aa + ' @ ' +
hh + ':' +
mn + '</b> '
postL10n.dateFormat.replace( '%1$s', $('option[value="' + $('#mm').val() + '"]', '#mm').text() )
.replace( '%2$s', jj )
.replace( '%3$s', aa )
.replace( '%4$s', hh )
.replace( '%5$s', mn )
+ '</b> '
);
}