From 80d373cb2e72bfcd9d0491712a1f0bddd2cf8177 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Sat, 3 Jul 2010 13:34:43 -0700 Subject: [PATCH] fixed issue 477 --- src/util.js | 2 +- tests/issue_477_event_width.html | 50 ++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 tests/issue_477_event_width.html diff --git a/src/util.js b/src/util.js index 19ffbe1..b2b21cd 100644 --- a/src/util.js +++ b/src/util.js @@ -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; } diff --git a/tests/issue_477_event_width.html b/tests/issue_477_event_width.html new file mode 100644 index 0000000..78ff1ea --- /dev/null +++ b/tests/issue_477_event_width.html @@ -0,0 +1,50 @@ + + + + + + + + + +
+ +