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:
@@ -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> '
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user