Answer the question
In order to leave comments, you need to log in
How to get timezone in datetime?
Good afternoon!
I have a function that returns the creation date of a post. for the datetime="" attribute, but it incorrectly shows the time zone, like this: 2016-08-16T17:30:17+00:00, but it should be like this: 2016-08-16T17:30:17+07:00.
The function itself: datetime="<?php the_time( 'c' ); ?>"
.
How to change it so that the time zone is displayed correctly (except for manually registering, of course).
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question