[wp-trac] [WordPress Trac] #62229: post_status dropdown in Quick Edit incorrect if the admin user's timezone is "behind" the site's timezone
WordPress Trac
noreply at wordpress.org
Sat Aug 30 16:41:39 UTC 2025
#62229: post_status dropdown in Quick Edit incorrect if the admin user's timezone
is "behind" the site's timezone
-----------------------------+------------------------------
Reporter: pbiron | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Quick/Bulk Edit | Version: 6.3
Severity: normal | Resolution:
Keywords: | Focuses: javascript
-----------------------------+------------------------------
Comment (by tivnetinc):
The bug is still there (WP 6.8.2)
inline-edit-post.js line 433
{{{
var post_date_string = $(':input[name="aa"]').val() + '-' +
$(':input[name="mm"]').val() + '-' + $(':input[name="jj"]').val();
post_date_string += ' ' + $(':input[name="hh"]').val() + ':' +
$(':input[name="mn"]').val() + ':' + $(':input[name="ss"]').val();
var post_date = new Date( post_date_string );
// ------- I DO NOT SEE TIMEZONE HERE ^^^ ---------
// ------- Then the comparison below looks wrong
// ------- If WP date is UTC and Admin timezone is UTC+..
status = $('._status', rowData).text();
if ( 'future' !== status && Date.now() > post_date ) {
$('select[name="_status"] option[value="future"]', editRow).remove();
} else {
$('select[name="_status"] option[value="publish"]', editRow).remove();
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62229#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list