date - Serve visitor post time adjusted to their timezone

admin2025-04-17  1

I want post times to reflect the timezone of the logged in or logged out user on my site. So if I post at 2:43PM London time, I want a user or visitor from Tokyo to see the post time as 11:43PM

I'm using get_the_time("g:i a", $post_id) format with timezone set to UTC. Does this already happen magically or?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744857178a270898.html

最新回复(0)