![]() |
Yesterday it greeted a member who lives in Norway at ~2:00pm EST (10 hours early). Today it greeted a member who lives in IL in the US ( GMT-6) at ~10:00pm (2 hours early).
Could the program be triggering on the members time zone instead of the servers? |
This is working incorrectly. on 4.0.7. It is posting the birthday messages roughly 25 hours late. I just had a posting for a members birthday that was yesterday, and it didn't post till almost 1am last night.
|
I've had this installed for a while now, even on 4.0, and it's been working OK, it just posted the thread too early (about an hour before midnight or so), so I just had to manually edit the date inside the thread. Which wasn't a problem, because not a lot of birthday threads were posted.
But today I had to disable it. I had two members who had a birthday, and during the night, this script posted over 100 threads :S Hopefully there'll be an update soon, because I really like this script! |
Even though i have created translations of the phrases; It's still uses the default English phrases in the gratulations.
|
Not posting any threads. Giving up on this one.
|
Persian Translation :cool:
By Persian Prince |
1 Attachment(s)
The original code used the vbdate()-function in a way that created bogus times, which actually is a design flaw in the function itself. However, since the Unix timestamp is independent from the default timezone settings i see no point in the original logic anyway, unless you alter the code to take advantage of vbdate's built in hourdiff mechanism, but since that mechanism uses the current users timezone you could get pretty unpredictable times.
I have altered the code so that a current UTC time is first created and then modified with the forums' timezone setttings to create a local forum time. In short, the product works fine now with the following changes. Replace: PHP Code:
With: PHP Code:
Note that the exclude times are still there, which by default means that no threads will be created after 20:00. These times can be altered in the array shown below PHP Code:
or removed completely by replacing: PHP Code:
with PHP Code:
Attached is a file with all changes. |
Thanks Kras!
|
Kras, I'm getting this error since installing your version
Warning: DateTime::modify() [datetime.modify]: Failed to parse time string (hour) at position 0 (h): The timezone could not be found in the database in [path]/includes/class_bootstrap.php(517) : eval()'d code on line 91 |
I wouldn't install it without valter's permission!
|
All times are GMT. The time now is 09:24 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|