This snippet allows you to show the current local time, in the language the WordPress installation has been configured to use.

Instructions
Add this snippet in your theme files, where you want to show current time, localised.

<?php echo date_i18n('j F', time()); ?>

Relevant link: https://codex.wordpress.org/Formatting_Date_and_Time

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Articles

left
Right