seankenny / fullcalendar

Full-sized drag & drop event calendar (jQuery plugin)
http://arshaw.com/fullcalendar/
MIT License
60 stars 39 forks source link

date time format for events #30

Closed marcir closed 10 years ago

marcir commented 10 years ago

hello, as documentation of the trunk using the following syntax to specify the properties of the start and end of an event

"start": "2014-09-03T09: 00" "end": "2014-09-03T10: 00"

This solution works with all views except with the view resourceDay

the resource day only works if I use the syntax

  new Date (y, m, d, 9, 0)

events are retrieved using ajax / php

There is no way to solve?

seankenny commented 10 years ago

Hi.

I am not entirely sure of your issue here. The dates you have supplied above are invalid as they have a space beteen the hour and minute segments.

Please see this plunkr I've added to demo events being returned in the format you have provided (ISO8601) with the space removed and also with events arriving via a url. Fork & edit the plunkr to try both ways.

http://embed.plnkr.co/0bzA3OEi4GBRooJ7uPQg/preview

If I have missed your point, can you please provide a plunkr example so I don't waste time tracking down a possible issue?

Many thanks, Sean

marcir commented 10 years ago

hello Sean thanks for the quick response. Sorry for the delay but I was in my work.

the space that you see depended on the copy paste. however clearing all the browser cache seems to work properly.

sorry for the inconvenience and thanks for your support

marcir commented 10 years ago

there was another problem. When specifying the value of the resources should not be placed between double quote

"resource": "[1]" is wrong

"resource": "[1] is corrected...

seankenny commented 10 years ago

Hi @marcir ,

Can you please elaborate? You mean the "resources" property on the "events" array? If so, this is as expected I think. "resources" can be an array of ids, each id being a string so this is the valid way:

"resources": ["resourceid1", "resourceid2"]

Update me with more details if I have it wrong please.

Thanks, Sean

marcir commented 10 years ago

hi seankenny , yes i refer property of events. excuse for superficiality. I thought it was clear.

seankenny commented 10 years ago

OK - so can you explain the issue please? It appears to be working as I would expect it to.

Thanks, Sean

On 8 September 2014 21:54, marcir notifications@github.com wrote:

hi seankenny , yes i refer property of events. excuse for superficiality. I thought it was clear.

— Reply to this email directly or view it on GitHub https://github.com/seankenny/fullcalendar/issues/30#issuecomment-54885599 .

marcir commented 10 years ago

The problem as described in my first was to hide the events under resources. In the copy paste had happened that there was a space in the properties of the start and end of the event. The problem was not so much but the fact that, by generating events using php and json_encode, the property resource was inserted in the middle of the double quote. In order to work you have to remove the double quote. Since we do not know it did not work. I posted the experience to help any others who have the same problem. So everything works!