Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Birthday Plugin
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 22, 2013 - 2:02 am

np. glad we could help.

Avatar
patrick182
Space
Member
sp_UserOfflineSmall Offline
May 10, 2014 - 1:50 pm

Hi there,

My birthday plugin works but is a day late on listing who's bday is today. For example. Let's say my bday was on May 1, on May 1, my user name will be listed in the "Upcoming" field. Only on May 2 is my user name listed in the "Today" field as indicated on the front end. Any ideas how I can ensure that bdays are depicted accurately on the front end so that they don't show up one day late? Many thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 10, 2014 - 2:26 pm

Timezone setting perhaps? What is the timezone setting in WordPress admin > settings > general? And where are you located?

andy-signature.png
YELLOW
SWORDFISH
Avatar
patrick182
Space
Member
sp_UserOfflineSmall Offline
May 10, 2014 - 3:42 pm

Hi Yellow,

My timezone is set to Los Angeles, which is where I'm located.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 10, 2014 - 3:44 pm

What is set to LA???  Andy asked about two locations...  The wp settings timezone should be set to where your server is located, not you...  then in your sp profile, you would put your own physical location...

Avatar
patrick182
Space
Member
sp_UserOfflineSmall Offline
May 10, 2014 - 10:59 pm

My servers and myself are both located in Los Angeles, as indicated in both wp and sp settings. The issue still persists so I just removed the birthdays plugin.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 11, 2014 - 12:32 pm

did a quick test and seems to be working properly... but will try to dig in deeper today and see if I can recreate under any other circumstances...

is your server handling daylight savings time?  Asking because not all do so... not sure if one hour delta could cause it either, but collecting info...

Avatar
gorky5
Member
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2015 - 6:42 am

I hope it's OK to resurrect this thread.

I'm running the Birthdays forum plugin. Because the cron task runs just once a day, the stats in the forum footer are often out of date for users.

For example, it was my birthday yesterday. I'm in the UK, and my SP profile has my timezone set to Europe/London. My server is in Chicago so I've set the timezone to that in WP general settings.

This morning (UK time) the forum stats were still showing today as my birthday (when the cron task last ran at 00:01 Chicago time, it probably still was). I had to manually run the sph_birthdays_cron hook to get it to update and show the correct information, but obviously I can't do that every morning.

I tried deleting sph_birthdays_cron in the Cron Inspector, so I could add it manually with an hourly interval, but before I could do so Simple Press automatically recreated a new task with the same once-daily schedule.

What can I do about this? If I can't change it, can I request an update to the Birthdays plugin that increases the cron task frequency? Ideally I'd like it to run hourly, so the information is correct for users all around the world.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 27, 2015 - 7:06 am

On the basis that it is always tomorrow or yesterday somewhere then this seems like a totally reasonable thing to do.
I will open a ticket to get it changed for the next update.
If you want to change it yourself I can tell you what to edit.

andy-signature.png
YELLOW
SWORDFISH
Avatar
gorky5
Member
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2015 - 7:24 am

Wow, thanks Andy! That's great news.

If you could share the code changes I'd be happy to edit the file myself (and others could do the same while we're waiting for the next plugin update).

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625