#111911
 mitchcan
Participant

Hi again,

OK, this is great. The updated code works well, but in testing there was just one hitch. Time.

The code seems to pull based on UTC. Our WP was set to our time zone (PST). This made it where when checking for posts, there were none rendered if the user was on the site anytime after UTC 00:00, – so basically for the last 7 hours of any day ‘today’s’ posts returned none.

I confirmed this by changing the WP time to UTC 00:00 and changing a couple posts to UTC ‘today’ date/time – the code worked great, including the category versions.

So on this, the only outstanding issue would be how to account for a different local timezone, e.g. UTC -7.

Can that be done?

Thanks!

Log in with your credentials

Forgot your details?