You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Date format incorrect on post items (entry date and updated) Should be day/month/year as per NHS guidance we have received.
Changing get_the_date and get_the_modified_date in inc/template-tags.php to the following fixed it for me:
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( DATE_W3C ) ),
esc_html( get_the_date('d/m/Y') ),
esc_attr( get_the_modified_date( DATE_W3C ) ),
esc_html( get_the_modified_date('d/m/Y') )
);
The text was updated successfully, but these errors were encountered:
Describe the bug
Date format incorrect on post items (entry date and updated) Should be day/month/year as per NHS guidance we have received.
Changing get_the_date and get_the_modified_date in inc/template-tags.php to the following fixed it for me:
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( DATE_W3C ) ),
esc_html( get_the_date('d/m/Y') ),
esc_attr( get_the_modified_date( DATE_W3C ) ),
esc_html( get_the_modified_date('d/m/Y') )
);
The text was updated successfully, but these errors were encountered: