Skip to content

Commit

Permalink
fixed issue 477
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Jul 3, 2010
1 parent 8e93415 commit 80d373c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Expand Up @@ -556,7 +556,7 @@ function exclEndDay(event) {

function _exclEndDay(end, allDay) {
end = cloneDate(end);
return allDay || end.getHours() || end.getMinutes() ? addDays(end, 1) : end;
return allDay || end.getHours() || end.getMinutes() || end.getSeconds() ? addDays(end, 1) : end;
}


Expand Down
50 changes: 50 additions & 0 deletions tests/issue_477_event_width.html
@@ -0,0 +1,50 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<link rel='stylesheet' type='text/css' href='../examples/redmond/theme.css' />
<script type='text/javascript' src='loader.js'></script>
<script type='text/javascript'>

$(document).ready(function() {

// need to change to GMT+2 to recreate this bug!!!!

$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
},
year: 2010,
month: 4,
firstDay: 1,
events: [
{"id":"1","title":"testcase 1 BAD","start":"1272822975","end":"1272837609","allDay":false}
//{"id":"2","title":"testcase 2 GOOD","start":"1272822975","end":"1272837809","allDay":false},
//{"id":"3","title":"testcase 3 GOOD too","start":"1272822975","end":"1272837609","allDay":true}
]
});

});

</script>
<style type='text/css'>

body {
margin-top: 40px;
text-align: center;
font-size: 13px;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
}

#calendar {
width: 900px;
margin: 0 auto;
}

</style>
</head>
<body>
<div id='calendar'></div>
</body>
</html>

0 comments on commit 80d373c

Please sign in to comment.