Sometimes you want to have listed on your WordPress homepage both posts and pages. By default, WordPress only lists and paginates posts.
It’s really simple to convert a
DateTime from one time zone to another in PHP. Just create a
DateTime object using date & time to be converted as the first parameter and the original time zone as the second parameter. Then change the time zone to the desired one using the
setTimezone method. That’s all!