aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Calendar.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/Calendar.java')
-rw-r--r--server/src/com/vaadin/ui/Calendar.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Calendar.java b/server/src/com/vaadin/ui/Calendar.java
index c3385baa2c..8b8cc7b475 100644
--- a/server/src/com/vaadin/ui/Calendar.java
+++ b/server/src/com/vaadin/ui/Calendar.java
@@ -535,6 +535,7 @@ public class Calendar extends AbstractComponent implements
// Get day start and end times
Date start = cal.getTime();
cal.add(java.util.Calendar.DATE, 1);
+ cal.add(java.util.Calendar.SECOND, -1);
Date end = cal.getTime();
boolean monthView = (durationInDays > 7);