How to get Current Date with Shortcode in Indian Timezone
-
I’m Currently using GP. I used some codes in function.php to get current date. But it doesn’t work for me. Here is the code..
add_shortcode( 'date_month_year', 'mth_footer_date' ); function mth_footer_date() { ob_start(); echo date('jS F Y'); return ob_get_clean(); }
Is there any way to modify this code to get Indian Current Time? Or give me another code to get time in Indian Timezone with Shortcode. Thank You.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to get Current Date with Shortcode in Indian Timezone’ is closed to new replies.