My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2310: Displaying date without time
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2014


Sign in to add a comment
 
Reported by identi...@gmail.com, Oct 7, 2014
Hi,

If we provide events (start: '2014-09-07', end: '2014-09-10') without time, it would be displayed from 2014-09-07 to 2014-09-09 on the calendar view as you can see here: http://jsfiddle.net/ysw2bww0/3/

It was not the case with version 1.6.4. Is it normal even if we add the option
nextDayThreshold: '00:00:00'

If I add 1 second to my end date of event it appears from 2014-09-07 to 2014-09-10 on the calendar.

If I set nextDayThreshold: '08:00:00' and provide an event with end: '2014-09-10T08:00:00', the event is well displayed from 2014-09-07 to 2014-09-10.
See http://jsfiddle.net/ysw2bww0/4/

Is it normal that the bevavior is different between 00:00:00 and 08:00:00?
http://jsfiddle.net/ysw2bww0/5/

Oct 30, 2014
Project Member #1 adamrs...@gmail.com
if we are talking about the 2.x behavior, you are right, there is a special case for 00:00:00 versus times like 08:00:00.

I deliberately decided that the time would need to be **greater than or equal to** the nextDayThreshold to appear as part of that day. But with a special case for the 00:00:00 time. If it is 00:00:00, it will never be considered to be part of that day.

I think more people will find it elegant than questioning it though.

Sounds like you understand what is going on. It seems like just a matter of accounting for this behavior and you'll be okay.
Status: Done
Sign in to add a comment

Powered by Google Project Hosting