UUA Services Plugin – Upcoming service rolls over too early

ForumCategory: PluginsUUA Services Plugin – Upcoming service rolls over too early
cplewis4 asked 6 months ago

Since upgrading to version 1.1 of the theme, the “next service” is rolling too early. I used a plugin to inspect the meta data on the post. I believe there is an issue related to timezones. Has anyone else done any testing with this feature to verify whether or not the “next service” is appearing exactly when it should? 
 

3 Answers
Margy Levine Young Staff answered 6 months ago

This has been reported by several people and a fix is on the way.

cplewis4 replied 6 months ago

Great, thanks! Here’s how I fixed it locally.
if($uu_services_timestamp) {
$local_date = new DateTime(null, new DateTimeZone(get_option(‘timezone_string’)));
$local_timestamp = $servicedate – $local_date->getOffset();
update_post_meta($post_id, ‘_services_unixtime’, $local_timestamp);
}

cplewis4 replied 6 months ago

that was in /wp-content/plugins/uua-services/inc/metaboxes.php

Margy Levine Young Staff answered 6 months ago

Version 1.0.3 of the Services plugin was released today and fixed this issue.

cplewis4 replied 5 months ago

Hi Margy,
I’ve updated the plugin and theme to 1.0.3. Now I’m seeing the service not roll when it should. If I put the service date 1 or 2 minutes from now, then update the service, I see that service listed on the home page. But then after 2 minutes – or even 5 minutes, I would expect the next service to become active. But I still see the old service. It seems like it’s not rolling when it’s supposed to now.

Can anyone else confirm this behavior?

Margy Levine Young Staff replied 5 months ago

I think the service remains for the rest of the day. There’s no way for it to know when your service is over.

cplewis4 replied 5 months ago

I can’t say for sure, but according to the way the code is written, it appears to be intended to roll after the event date passes. We were going to put in the “service end time” so that it would roll at the end of the service. But it’s not working that way for me. I still haven’t been able to figure out exactly when it’s rolling. It’s not immediate, but seems to be less than 5 hours later.

Margy Levine Young Staff answered 4 months ago

This is fixed in version 1.0.3 of the Services plugin.

KBGasser replied 4 months ago

I am still experiencing this issue, I believe. My site is fully updated (WordPress, Plugins, etc.) but my Upcoming Services are not showing up properly: http://ucnorth.org. Can you help? I’m running 1.0.3 of the Services plugin. Thanks!

KBGasser replied 4 months ago

Yes, we have three upcoming services scheduled which are not displaying in the Upcoming Services section of the homepage or of the Upcoming services page, including this Sunday’s Service.

KBGasser replied 4 months ago

Just wanted to quickly add that if you go look at my homepage, I actually just added a text widget with this Sunday’s content. It isn’t displaying from a post. Thanks!

KBGasser replied 4 months ago

Finally, and sorry for the many additions, I have added the upcoming services text manually to the Upcoming services page. So although it may appear to be displaying due to the shortcode, it is not. Thank you so much!

Margy Levine Young Staff replied 4 months ago

Can you email screenshots of the three services pages to me at myoung@uua.org? Or email me there and give me a login.

KBGasser replied 4 months ago

Yes! Thank you so much! I’ll be in touch.