After upgrading to Date 6x-2.8 last week, newly created events no longer appear in the calendar (all previously created events do appear though). The newly created events appear in the content management list but all references to that event do not appear in any of the calendar views (month, week or day). I am kind of surprised no one else has noticed and reported this yet - so it make me wonder why I am special.
Using Date 6x-2.8, Calendar 6x-2.4, Drupal 6x.22
| Comment | File | Size | Author |
|---|---|---|---|
| #39 | timezone-772082-9.patch | 1.23 KB | arlinsandbulte |
| #38 | date-timezone-fix-views-argument-1408216-38.patch | 595 bytes | artkon |
| #37 | date-timezone-fix-views-argument-1408216-37.patch | 594 bytes | artkon |
| #32 | date-calendar-events-disappear-1408216-32.patch | 594 bytes | technicalknockout |
| #30 | date-calendar-events-disappear-1408216-30.patch | 594 bytes | technicalknockout |
Comments
Comment #1
dwillcox commentedI see something similar, though I haven't tried exercising the events vs. old events.
What I find is that while the monthly and weekly calendars look right, the day view generally doesn't show anything. Sometimes it does, but I haven't figured out the pattern. Maybe only the first occurrence of a repeating date?
I've reverted to version 2.7.
Comment #2
scooper commentedI have the same problem as Comment #1 - some events show in Day view and others don't. I found the pattern - if an event starts early in the day, up until about 6:30 PM, it displays in Day view. If I change the start time to 7:30 PM, it drops off the Day view. Events do show correctly in Month view regardless of time. Our time zone is America/New York if that makes any difference.
Comment #3
Shai commentedsub
Comment #4
jameswoods commentedI discovered the same problem in #1 and independently confirmed the behavior of #2. Is this a timezone issue?
Comment #5
arlinsandbulte commentedI think this is the same issue as I reported here: #1408638: Day view not showing all events.
Marking that issue as duplicate as there seems to be some good info and activity here.
Also being reported in the Calendar module here: #1410802: Events Do not show up after 6pm
Below is the original post from that duplicate issue.
After upgrading my site to Date 6.x-2.8, I noticed that on the day view, not all events are shown. I have not found a pattern to what is shown or not shown. But, especially if there are multiple events on the day, only the first one or two will be shown in the day view.
From my experience, it only seems to affect the day view. Month view & Week views don't seem to be affected.
I verified this problem is also present in Date 6.x-2.x-dev (Last updated: January 12, 2012 - 06:06)
I traced the issue to this commit:
http://drupalcode.org/project/date.git/commit/5462b3d4c360f85e9da3ece27c...
This issue is not present before the above commit.
The issue is present with and after the above commit.
Comment #6
jameswoods commentedAwesome troubleshooting arlinsandbulte!!
Comment #7
stuen93 commentednot sure if this is the same problem but I was having trouble getting any events that start after 6pm to show in the day view. I reverted to the previous version of the date module and everything starting showing up again.
Comment #8
thelocaltourist commentedJust tested with the commit released today and the problem is still there. No events with a start time after 6pm appear on the day view. Also, when creating a view with a date filter of greater than or equal to 12AM today OR greater than or equal to now events show from 6pm the previous day. It's like the time stamp is 6 hours earlier than it should be!
Comment #9
djhspence commentedI don't know if this is the same issue, but I'll link it here just in case it's related ... http://drupal.org/node/1424522
The dates appear on the calendar day view, but on the wrong day if they're after 18:00. And it only manifests when I override the default Calendar display style on the Day view with something like HTML list. When I use the stock Day view everything works as it should.
Comment #10
thelocaltourist commentedThat's the same problem I'm having. To add to that, when using the calendar day view no events after 6pm/18:00 appear on the day view.
It seems that the start time for today is being set at 6pm/18:00 for the previous day and runs for 24 hours.
Comment #11
andywalters commentedsub
Comment #12
hejeva commentedthelocaltourist pointed out that this might be same issue I am seeing here:
http://drupal.org/node/1201322
The client isn't too thrilled to search for Jan 1 - Jan 31 and have to know to get around bug, to really search for Jan 2 - 31.
Comment #13
kfritscheI can confirm this bug. And also can confirm that the commit mentioned by arlinsandbulte is the reason for this bug.
I changed the lines in date_api_sql (line 493) to be similar to the state before and now it works again.
I did not attach a Patch, because i don't know if this is the correct approch.
Maybe this should be better done in date_api_argument_handler.inc, where the adjustment is set:
But there is no db_timezone or local_timezone there, which can be checked.
Comment #14
sarah_g commentedThe code in #13 worked for me.
Comment #15
johnshih commentedsub
Comment #16
stanb commentedThe code in #13 seems to have worked for me also.
Comment #17
echoz commentedWorks for me too, and I thought a patch would be productive towards getting it reviewed and committed if the right approach, so here is a patch of #13. Thanks kfritsche!
This file has a some trailing whitespace, which I had to leave in, as Drupal Coding Standards states to correct those separately.
Comment #19
kfritscheSimpletests works fine for me locally.
Seems to me, the testbot have problems with the external dependancy jquery ui?
Comment #20
dwillcox commentedYup, adding that patch seems to have fixed the problem for me, too. I sure hope this can get into an official release. 2.8 is a no-go as it stands.
Comment #21
djhspence commented#13 worked for me too.
Comment #22
echoz commentedHow do we get this patch to pass tests, so status can go back to "needs review"? I've noted above that it fails Drupal coding standards by having lots of trailing whitespace, but the test details indicate other things and say nothing about whitespace. I don't know much about tests, but if the whitespace corrections would fix it that would be easy. Can someone advise? Maintainer input?
Comment #23
karens commentedIgnore the failing tests on the issue queue. You do need to check that the tests don't fail if you run them locally. There are problems getting the D6 contrib tests to work right on d.o. and I've given up on that branch. The D7 tests work correctly. If there's a way to get the system to quit running tests on D6 patches I would do that, but I don't know how.
Comment #24
echoz commentedThanks KarenS, switching back to "needs review" then.
Comment #25
arlinsandbulte commentedMarked #1411872: Events on calendar disappear on the last day of each month near midnight as a duplicate of this issue.
There is a competing patch over there too: http://drupal.org/node/1411872#comment-5629838
Comment #26
izmeez commentedSince both competing patches (the one in this issue and the one in the other issue) appear to fix the problem are there any thoughts on which is the better way to go?
Comment #27
technicalknockout commentedHello, I was using the patch from the other thread. The other patch basically just deleted old code in includes/date_api_argument_handler.inc:
I'm not sure what is gained by not doing the timezone adjustments, so I would suggest using the patch from the other thread. The patch in this thread removes the glitch, but I think allows misuse of the sql_where_format() function. I don't think there's anything wrong with the code here:
It's just not being called appropriately by the views handler. Isn't the point of having the $adjustment argument there with a default value of 0 to have the timezone adjustment logic happen before this function is called?
Comment #28
kentr commented#17 made all my events disappear from the calendar. Reversing the patch brought them back.Same problem with the competing patch.Update: Turns out my events disappeared due to a schema mismatch / dirty data.
After I fixed that up, #17 resolved the original issue related to this ticket.
Comment #29
echoz commentedMy issue, first described on the Calendar issue queue #1425526: 31st dates not showing on month view, is resolved by either one of these patches, #17 here, or from #8 in #1411872: Events on calendar disappear on the last day of each month near midnight. My issue also better matches #1411872: Events on calendar disappear on the last day of each month near midnight but that one was closed as a duplicate of this one.
Comment #30
technicalknockout commentedSubmitting patch from http://drupal.org/node/1411872 for review.
Comment #32
technicalknockout commentedLooks like automated test fails because of the issue version is not the 'tip of the codebase'. Updating the issue's version and resubmitting.
Comment #33
echoz commented@technicalknockout, note the info from KarenS the maintainer in #23 to "Ignore the failing tests on the issue queue".
Comment #34
terbs commentedSubscribing
Comment #35
artkon commentedPatch 32 worked for me , thanks.
Comment #36
hankvanzile commentedThe patch in #32 fixed this problem for me, as well. using Drupal Commons 6.x-2.5.
Comment #37
artkon commentedpatch 30 applied cleanly to branch 6.x-2.x
Comment #38
artkon commentedpatch created for revision -> f237ddeb11f23b00f0f01ca3739971a4c3705f9f.
Comment #39
arlinsandbulte commentedMarked #772082: Date field timezone is ignored in views when used as a filter or argument without minutes granularity as a duplicate of this issue.
That issue had a bigger patch than #37/38 above, so I am attaching it here for review.
Credit should go to tangent.
Comment #40
tangent commentedMy patch is bigger because I perceived the issue to exist in both filters and arguments. The patch in #38 only affects arguments. Please confirm that filters should not also be fixed before disregarding my patch. I lack the time to test or argue the case further at the moment.
Comment #41
technicalknockout commentedI agree both filters and arguments should be patched as per #39. I think the point is that not adjusting for timezones causes the date selection to miss events at the edges of the desired timespans.
Comment #42
terbs commentedI stumbled upon this issue because I was having these same symptoms. However, my problem was related to this: http://drupal.org/node/1469158
So if the patch doesn't work for you, see if that helps.
Comment #43
betovargIs this fix being considered for the next release of the module? This is indeed critical. I would wait for that answer before applying the patch if i know it is being reviewed for the future of the module.
Comment #44
tentonjim commentedThanks for everyone's help on this.
I am building a site for my son's High School football team and freaked out when I came across this bug.
Initially the patches appeared to work... say an event the last day or last few days of March 2012, these patches fixes that issue.
I ran across another instance though... in the month of June 2012 the last date I can get to show up is Wednesday June 27th. I've dumped caches deleted recreated... am at my wit's end.
I tried every possible combination of the patches here... anyone having any luck?
Thanks a lot!
~ Jim
Comment #45
dwillcox commentedVery strange. I have no such problem on my site, though I did hand-install one of the earlier suggested patches which I don't think covered everything. I don't use a lot of bells and whistles, so it could be I'm not tripping over some other problem.
Now what would really worry me would be if you said events didn't recur after Dec. 2012. :)
Comment #46
andrewtf commentedHad the same experience (no events showing after 4 pm; previous evening's events showing in the morning in list view), applied the patch in #39 and all is well. Hope this makes it into the next module release as this issue is really a killer.
Comment #47
c4rl commentedPatch #39 works for me. Anything preventing this from RTBC?
Comment #51
dwillcox commentedCan we please get "hammas com" deleted and banned as a spammer!
Comment #52
dhalbert commentedIf you see spam, post an issue at Issues for Drupal.org webmasters and it will get taken care of. I see that hammsa.com has been reported there already.
Comment #53
technicalknockout commentedCan anyone replicate #44? It may be specific to tentonjim's install. But if it's indeed related to this critical bug, then I would say this issue needs work. Otherwise let's move to 'reviewed & tested by community' as we have many reports of the patch fixing the initial issue.
Comment #54
nathaniel commentedApplied the patch in #39 and that fixed events in a view that is filtered by day and sorted by time (requires timezone conversion on the day filter).
As for #44, all events are showing up from late June and beyond.
Comment #55
retorque commentedPatch in #39 works for me, and I'm not having the problem mentioned in #44.
Comment #56
andrewtf commentedNot experiencing the issue in #44 either.
Comment #57
hankvanzile commentedAdd me to the list of people not experiencing the issue in #44.
Comment #58
spiritcapsule commentedPatch in #39 appears to work for us.
Comment #59
technicalknockout commentedMarking reviewed and tested.
Comment #60
seaneffel commentedThe patch at #38 fixes the arguments issue for the original post. The patch at #39 included work on the filters.
Screenies included, notice the date of the first few results:
With #38 patch
With #39 patch
Comment #61
seaneffel commentedComment #62
arlinsandbulte commentedOK, committed #39:
http://drupalcode.org/project/date.git/commit/a255662
Comment #63
arlinsandbulte commentedKarenS had some very relavant questions about this issue, so here is some additional info regarding the cause and history of this bug:
The commit that cused this regression was this:
http://drupalcode.org/project/date.git/commit/5462b3d4c360f85e9da3ece27c (July 28, 2011)
The original issue for that commit is:
http://drupal.org/node/1017866 (that issue is a mess, I could not make much out of it).
From this issue comments there, looks like KarenS made 2 commits for it.
http://drupal.org/node/1017866#comment-4794554 (July 28, 2011)
http://drupal.org/node/1017866#comment-5286502 (November 24, 2011)
Looks like the second Nov 24, 2011 commit was only made to the 7.x branch... maybe it should have also been applied to 6.x?
Nov 24, 2011 7.x commit: http://drupalcode.org/project/date.git/commit/f8d1ef5
Comment #64
jhodgdonIt would be useful to have this get into a 6.x-2.5 release. :)
Comment #65
arlinsandbulte commentedjhodgdon:
Actually, this is a DATE issue, the next version of which will be 6.x-2.9 :-)
In light of my findings in #63 above, I am going to re-open this issue and assign it to myself.
I promised KarenS I would spell out the steps to reproduce this to get her discerning eyes on it and make sure the fix I applied in #62 is the right one.
I hope to get around to that later tonight.
Comment #66
arlinsandbulte commentedKarenS: Here are steps to reproduce the issue and confirm the fix I committed in #62.
Comment #67
karens commentedOK, I can replicate the issue. The commit made by Arlin is correct. The second patch I made to the D7 version made the same changes but also had some additional changes. I need to look at the rest of those changes to see which ones are applicable to D6 and get them in.
Great detective work Arlin! Thanks so much.
The dev version has the fix for this issue. Once I sort the rest of this out and do a little more issue clean up I'll get a new release out.
Comment #68
karens commentedI sorted out the rest of this. Dev should now have all the right fixes.
http://drupalcode.org/project/date.git/commit/82d04ee
Comment #69
arlinsandbulte commentedUgh:
After the commit in #62, the issue was fixed.
After the commit in #68, the issue is back...
Comment #70
karens commentedFixed again.
http://drupalcode.org/project/date.git/commit/f4caf1a
Comment #71
arlinsandbulte commentedTHAT WAS IT!
Everything works great for me now.
Thanks KarenS!
Comment #72
kentr commentedGood news!
Is it in the D6 branch yet?
Hmm, according to http://drupalcode.org/project/date.git/commitdiff/82d04ee, looks like it is in D6.
Comment #73
c4rl commentedThis issue was never tagged as 7.x, so it's always been 6.x AFAIK.