Calendar Table view's false weekend
Benwick - April 2, 2009 - 01:24
| Project: | Event |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Benwick |
| Status: | active |
Jump to:
Description
In Table view not the weekend signed pink colour, but Friday and Saturday.
At the Date and time settings at the First day of week is Monday was set.
I hope this is a little funy accident in the code.. Pls somebody solve it!

#1
If you have a 'table' view and a pink background, you are using the Event module calendar, not the calendar created by Calendar module.
I would suggest adding a lot more information about what is going on if you want a solution.
#2
No info forthcoming.
#3
I have a similar problem:
In the Event's Table view, Fridays have a pink bankground and Saturdays and Sundays look like weekdays.
If I look at the HTML source, the class for the table cell seems to be off by a day:
Friday November 6 has class="nov sat", while Saturday November 7 has class="nov " (i.e. no day of the week).
<tr class="even"><td colspan="3" class="nov sat" id="nov"><div class="day"><em>11</em> / <em>6</em></div><div class="event-empty"></div>
</td> </tr>
<tr class="odd"><td colspan="3" class="nov " id="nov"><div class="day"><em>11</em> / <em>7</em></div>
<div class="event-empty"></div>
</td> </tr>
The problem seems to be fixed by changing event.module line 796
$dow = _event_day_of_week($cur_date) + 1;$dow = _event_day_of_week($cur_date);I'm running with this fix now:
<tr class="even"><td colspan="3" class="nov fri" id="nov"><div class="day"><em>11</em> / <em>6</em></div><div class="event-empty"></div>
</td> </tr>
<tr class="odd"><td colspan="3" class="nov sat" id="nov"><div class="day"><em>11</em> / <em>7</em></div>
<div class="event-empty"></div>
</td> </tr>
<tr class="even"><td colspan="3" class="nov sun" id="nov"><div class="day"><em>11</em> / <em>8</em></div>
<div class="event-empty"></div>
</td> </tr>
#4