Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello everyone,
I'm using Calendar with Date 2.7 and I noticed that the contents that start and end the first day of the month (eg May 1) do not appear in the monthly calendar.
The problem does not occur if the the starting date of the event is different from its ending date (eg may 1 - may 3).
I tried to check the day before (April 30, 2011) but the event is not present either.
I wanted to know if it's a problem you have already found and if there is a possible solution.
I tried to ask a friend, and he has this problem as well.
Thanks in advance
Comments
Comment #1
dvitali CreditAttribution: dvitali commentedI have already the same problem.
Comment #2
Yoris00 CreditAttribution: Yoris00 commentedComment #3
dvitali CreditAttribution: dvitali commentedNobody have this problem?
Comment #4
Bluenose37 CreditAttribution: Bluenose37 commentedyes, there does seem to be a problem.
Comment #5
andres_de CreditAttribution: andres_de commentedI figured out the following:
- calendar 6.x-2.4
- date 6.x-2.x-dev (2011-Mar-26) and date 6.x-2.x-dev (2011-Nov-27)
- Server is in Germany, user in Germany
- Now it's normal time (winter time)
- All day date means: date begin = date end e.g. 2012-04-01 00:00 for both dates
When I post (now in dezember 2011) an all day date for the first day of a month in sommer time (no matter for 2011 or 2012) it is not displayed in calendar.
When I post an all day date for the first of a month in normal time, it is displayed as it should be.
That means:
A date for 2011-10-01 is not displayed - a date for 2011-11-01 is displayed
A date for 2012-03-01 is displayed - a date for 2012-04-01 is not displayed
And:
2012-04-01 00:00 to 2012-04-01 00:55 is not displayed
2012-04-01 00:00 to 2012-04-01 01:00 is displayed
2012-04-01 00:00 to 2012-04-01 23:59 is displayed with (all day) as it should!
I hope that helps a little bit - it would be great if someone has a solution.
Comment #6
andres_de CreditAttribution: andres_de commentedI found a solution:
The date was saved in the database with the consideration of the time zone. E.g. 2012-05-01 00:00 was saved as 2012-04-30 22:00:00.
The date field had the time zone handling "Site's time zone". I changed it to UTC (Coordinated Universal Time). After this change, the date is stored in the database without consideration of the time zone: 2012-05-01 00:00 is saved as 2012-05-01 00:00:00.
Of cause I had to correct all dates in the nodes, but then the dates where displayed correctly in the calendar!
The problem of "the first day of month" also appeared for "first day of week" and even for the day view for "all day" dates - those dates where not displayed.
With the change of the time zone handling this does not occur any more.
It also works with time zone handling "No time zone conversion".
Well, it works for me - but what about those who need a time zone handling?!?
As you see, I didn't went in the code. I guess the problem is the calculated start date for the query for the requested month (week, day)...
Comment #7
mattez CreditAttribution: mattez commentedComment #8
mickeydblv CreditAttribution: mickeydblv commentedJust to confirm, changing time zone on the server config: Config | Regional and Language | Regional Settings to UTC solved it for me too!
Many thanks.
Comment #9
Kasey_MK CreditAttribution: Kasey_MK commentedI use time zone handling as well, and figured out a workaround: https://www.drupal.org/node/2200263#comment-10846886
Comment #10
apadernoI am closing this issue, since it's for a Drupal version no longer supported.