[wp-trac] [WordPress Trac] #48690: WordPress 5.3 get_the_time() weird output

WordPress Trac noreply at wordpress.org
Mon Nov 18 02:53:23 UTC 2019


#48690: WordPress 5.3 get_the_time() weird output
--------------------------+-----------------------------
 Reporter:  timon33       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Date/Time     |    Version:  5.3
 Severity:  normal        |   Keywords:
  Focuses:  ui, template  |
--------------------------+-----------------------------
 Hello.

 I've just upgraded to WP 5.3 from the last 5.2 version.

 The locale is set to Greek and all my tests are in that language.

 The output of

 {{{#!php
 <?php
 echo get_the_time( 'l, d F Y H:i', $post->ID );
 ?>
 }}}
 is
 {{{
 Σάββατο, 19 20 Ιανουαρίου19 10:50
 }}}

 {{{
 Saturday, 19 20 January19 10:50 in english.
 }}}

 where obviously should be:

 {{{
 Σάββατο, 19 Ιανουαρίου 2019 10:50
 Saturday, 19 January 2019 10:50 in english.
 }}}


 It seems that it gets the first two digits of the year part and places it
 before the month.

 I think this has something to do with the new dates in 5.3 and locale
 which by the way now recognises genitive cases correctly.

 Best regards

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48690>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list