How to show the current time in local language in WordPress

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, localized.

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

Comments

One Reply to “How to show the current time in local language in WordPress”

Leave a Reply

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

Snippet Info

Tested with Wordpress v. 5.0
Last Modified: 05.03.2019
Last Reviewed: 05.03.2019

How to show the current time in local language in WordPress
2.9 (58.75%) 16 vote[s]
Please report broken snippets.
Report Broken Snippet
WP Engine