[wp-trac] [WordPress Trac] #63834: Block post-date doesn't show date for postings modified on same day am/pm (Fix included)

WordPress Trac noreply at wordpress.org
Sun Aug 17 18:54:16 UTC 2025


#63834: Block post-date doesn't show date for postings modified on same day am/pm
(Fix included)
--------------------------+------------------------------
 Reporter:  gchriz        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by iamadisingh):

 This issue still exists in WordPress core. We should use Unix timestamp
 format 'U' for reliable numeric comparison:

 {{{#!php
 <?php
 if ( get_the_modified_date( 'U', $post_ID ) > get_the_date( 'U', $post_ID
 ) ) {
 }}}

 This matches the fix already implemented in Gutenberg PR [GB70982] and
 should be synced to WordPress core.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63834#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list