GMT format for date_i18n function
-
Hi all,
I’m trying to display a custom time format with date_i18n function.Issue: I have a custom field with unix timestamp format.
In my template page I get the custom meta field and would display the time in this format: H:i.Using
echo date_i18n('H:i', $timestamp, $gmt);
It work but it show “15:30” while real time is “16:30”, I think due to local server timezone.I tried set $gmt as ‘+0100’ but it doesn’t work. Which is the correct $gmt format to set?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘GMT format for date_i18n function’ is closed to new replies.