From d11aad32e96e6d6c39759c5bf32da7ceed680940 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Mon, 25 Aug 2014 22:22:06 -0700 Subject: [PATCH] fix bug with resizing events with timezones in agenda slots --- src/common/Grid.events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Grid.events.js b/src/common/Grid.events.js index 59eea06..7d9809f 100644 --- a/src/common/Grid.events.js +++ b/src/common/Grid.events.js @@ -302,7 +302,7 @@ $.extend(Grid.prototype, { }, cellOver: function(cell, date) { // compute the new end. don't allow it to go before the event's start - if (date < start) { + if (date.isBefore(start)) { // allows comparing ambig to non-ambig date = start; } newEnd = date.clone().add(_this.cellDuration); // make it an exclusive end