[dev] Horde 5 TimeObjects API Kronolith: multiday timeObjects split into date items per day

Ralf Lang lang at b1-systems.de
Mon Aug 6 06:33:55 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 05.08.2012 19:51, schrieb Michael J Rubinsky:
>> When clicking on day 2 of a normal multiday event from 08/22/12
>> 6:00 to 08/25/12 8:00 I see 22.08.2012 in from display and
>> 25.08.2012 in to display.
>> 
>> With multiday, I see 23.08.12 (allday) till 23.08.12 (allday),
>> and klicking on the next day I see 24.08.12 (allday). Klicking on
>> the last day gives (25.08.12 0:00) till (25.08.12 8:00)
> 
> 
> Are you sure that your application is returning only a single
> array entry for these events and not one entry per day?

At least it doesn't look like it. Here is what listTimeObjects returns:

print_r($registry->call('b1training/listTimeObjects',
array('trainings')));

Results

Array
(
    [1] => Array
        (
            [title] => A multiday training
            [description] =>


Something
            [id] => 1
            [start] => Horde_Date Object
                (
                    [_year:protected] => 2012
                    [_month:protected] => 8
                    [_mday:protected] => 7
                    [_hour:protected] => 9
                    [_min:protected] => 0
                    [_sec:protected] => 0
                    [_timezone:protected] => UTC
                    [_defaultFormat:protected] => Y-m-d H:i:s
                    [_formatCache:protected] => Array
                        (
                        )

                )

            [end] => Horde_Date Object
                (
                    [_year:protected] => 2012
                    [_month:protected] => 8
                    [_mday:protected] => 10
                    [_hour:protected] => 17
                    [_min:protected] => 0
                    [_sec:protected] => 0
                    [_timezone:protected] => UTC
                    [_defaultFormat:protected] => Y-m-d H:i:s
                    [_formatCache:protected] => Array
                        (
                        )

                )

            [params] => Array
                (
                    [id] => 1
                )

        )

    [2] => Array
        (
            [title] => Another multiday training
            [description] =>



            [id] => 2
            [start] => Horde_Date Object
                (
                    [_year:protected] => 2012
                    [_month:protected] => 8
                    [_mday:protected] => 20
                    [_hour:protected] => 9
                    [_min:protected] => 0
                    [_sec:protected] => 0
                    [_timezone:protected] => UTC
                    [_defaultFormat:protected] => Y-m-d H:i:s
                    [_formatCache:protected] => Array
                        (
                        )

                )

            [end] => Horde_Date Object
                (
                    [_year:protected] => 2012
                    [_month:protected] => 8
                    [_mday:protected] => 27
                    [_hour:protected] => 17
                    [_min:protected] => 0
                    [_sec:protected] => 0
                    [_timezone:protected] => UTC
                    [_defaultFormat:protected] => Y-m-d H:i:s
                    [_formatCache:protected] => Array
                        (
                        )

                )

            [params] => Array
                (
                    [id] => 2
                )

        )

)



- -- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAfZVMACgkQCs1dsHJ/X7CvQQCgnx+c6NeqoAx1m0RNrwjYIJbf
w74AoIPhoKaW203mGx31L5JtU1dYZ1lu
=7Apf
-----END PGP SIGNATURE-----


More information about the dev mailing list