I exported my database and content to a new WordPress. Everything works fine, except that every post is showing under today’s date, instead of the published date like it should be (the actual published date is the good one in the dashboard though).
It was working correctly in my last WordPress (5.0.11). The new one is 5.6.1. Here’s the PHP related to the date in my theme :
<span class="post-date"> <?php $ date = date_i18n( get_option( 'date_format' ), strtotime( get_the_date( 'r' ) ) ); printf( esc_html_x( 'Publié le %s', 'Publié le DATE', 'chosen' ), $ date ); ?> </span>
Any idea what happened?