I am coding a simple wordpress plugin and uses the time()
function but I notice that it returns the server unix timestamp, not in the timezone that I set inside wordpress.
How can I retrieve the unix timestamp based on the wordpress timezone setting?
2
Answers
Almost all of the main time functions accept parameters. I think it would be smart to change that.
Use
current_time
.USEFUL LINKS