Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date format incorrect on post items currently Month day, year. Should be day/month/year #678

Open
winley opened this issue Jan 7, 2025 · 0 comments

Comments

@winley
Copy link

winley commented Jan 7, 2025

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') )
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant