Is there a way to find Timezone string from timestamp Integer value?
My Integer value : +5.5
What I want to get
Asia/Colombo
I’m working on WordPress, Is there an easy way to get that on WP?
Is there a way to find Timezone string from timestamp Integer value?
My Integer value : +5.5
What I want to get
Asia/Colombo
I’m working on WordPress, Is there an easy way to get that on WP?
You must be logged in to post a comment.
I would use
DateTimeZone::listIdentifiers()
This will output something like:
Then you can wrap this code inside a plugin/shortcode and use the output to reverse search your time zone.
No, because a time zone offset and a time zone are two very different things.
See “time zone != offset” in the timezone tag wiki.