Hi,
Today i updated my event module with latest version of 5.x-2.x-dev . The problem is for current month the number of days left for that event in "upcoming events" block is showing correct value but for next month onwards irrespective of what month or day the event is it is showing "34 days" for all events. I assume it is a bug.
--rafi
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | event.sql_.tgz | 758 bytes | trungdong |
Comments
Comment #1
trungdong commentedJust wonder if anyone has a chance to look at this. I trace the problem to an SQL query with
TIMEDIFF(e.event_start, '%s') AS time_leftin event_database.*.inc. However, nothing looks wrong to me.It's getting more and more annoying when my site's users add more events long in the future and they're all displayed as 34 days away :(.
Comment #2
gerhard killesreiter commentedCan any of you provide a dump of their event table?
Comment #3
trungdong commentedMy event table dump is attached.
You might need to rename the file to .gz.
Comment #4
Steel Rat commentedActually I've noticed that events in the current month are off by one day as well. Example, an event I set for August 18 (today is the 14th) shows 3 days as the remaining time, when it's in fact 4 days. Same for an event for the 30th, showed as 15 days even though it's 16.
I made a simple correction in event.module to increment the $days variable if it was greater than zero. But I don't know if the fix will break anything else. Here's what I did:
In function event_block_upcoming:
Comment #5
Steel Rat commentedI have one event for next month, and it's showing the correct number of days (24), though it showed 23 before my "fix". So it's a different problem. Sorry, I guess I should have posted as a new issue.
Comment #6
killes@www.drop.org commentedThis was fixed some time ago.
Comment #7
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.