On Thursday, November 13, 2014 5:37:14 AM UTC-5, Salman Akram wrote:
>
> Hi Evert,
>
> My display_errors is on in php configuration file, my screen get dimmed 
> and don't load anything, i need to restart my browser
>

If you get a completely blank page when triggering a PHP error, there is 
definitely an issue with your configuration. I would strongly recommend to 
fix that first, as you are basically coding blind otherwise.
 

>
> $splitter->next() function is not available anymore in the ICalendar or 
> VCard, it have changed to $splitter->getNext(), old doc confused me a lot
>
> Splitting export files
>

It looks like our documentation was wrong :( that sucks. Sorry about that. 
I fixed the docs now as well. The library is pretty well tested, but I 
don't think all our documentation samples are.

 

>
> ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>
> Now i have concerned only with DTSTART and DTEND datetime object, these 
> are two things thats why i want to use sabre/object.
>
> if i import basic.ics file in the google calendar, the DTSTART and DTEND 
> are not same as i have parsed basic.ics file using sabre/vobject 
> Icalendar.Below is parsed data, i just print out SUMMARY, DTSTART(DateTime 
> object) and DTSTART(in W3C format).
>
> Also there are some VEVENT with DTSTART having not time but only date, 
> your parser include 00:00:00 with them, it seam event will start 12:00 AM 
> or PM.
>
> i have attached my test.php file you can replace with test.php(roor 
> directory) in the zip file, zip file i had sent you earlier few days.
>
> can you please just import basic.ics file to your google calendar and and 
> can matched the DTSTART object parsed through sabre/vobject?
>
> Or 
>
> can you please provide some other solution using sabre/vobject so that 
> they should be same?
>
>
[snip]

DTSTART can indeed always have either a DATE or DATE-TIME value. When you 
call:

$dateTime = $vevent->DTSTART->getDateTime();

You get a PHP DateTime object back. That object has a date and a time, and 
for DATE values, we indeed just put the time on midnight.

This shouldn't be an issue however, because if you want to just output the 
date, you can just call the format function:

echo $dateTime->format('Y-m-d');



See:
http://php.net/manual/en/datetime.format.php

If you want to know if an event is an all-day event or if it also has time 
associated with it, you can use the hasTime function:

$vevent->DTSTART->hasTime()

This returns back true or false.

Does that help at all?

Evert

-- 
You received this message because you are subscribed to the Google Groups 
"SabreDAV Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sabredav-discuss/713bc504-7b81-4d3d-9489-dda7ef762835%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to