Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone Data Enhancement request #23

Closed
izenn opened this issue May 7, 2015 · 2 comments
Closed

Timezone Data Enhancement request #23

izenn opened this issue May 7, 2015 · 2 comments

Comments

@izenn
Copy link

izenn commented May 7, 2015

Please add a variable where either the raw DTSTART or the TZID is passed back from the parser.

@u01jmg3
Copy link
Owner

u01jmg3 commented May 7, 2015

I think the best option would be to return TZID (perhaps as another key/value pair); the contents of DTSTART can already be returned by referring to the key ($event['DTSTART']) .

This request ties in with a recent PR


Examples of other values that can exist:

;LANGUAGE=en-gb
;LANGUAGE=en-us
;TZID="(UTC) Dublin, Edinburgh, Lisbon, London"
;TZID="Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London"
;TZID="GMT Standard Time"
;TZID="British Standard Time"
;TZID="Unnamed Time Zone 1"
;TZID="Unnamed Time Zone 2"
;VALUE=DATE

@u01jmg3 u01jmg3 closed this as completed in 4922899 Jun 3, 2015
@u01jmg3 u01jmg3 added the change label Jun 3, 2015
@u01jmg3
Copy link
Owner

u01jmg3 commented Jun 3, 2015

Please let me know of any issues

You now get an array of these properties along with the normal data:

    [1] => Array
        (
            [DTSTART_array] => Array
                (
                    [0] => Array
                        (
                            [TZID] => Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London
                        )

                    [1] => 20160105T090000Z
                )

            [DTSTART] => 20160105T090000Z
            [DTEND_array] => Array
                (
                    [0] => Array
                        (
                            [TZID] => Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London
                        )

                    [1] => 20160107T173000Z
                )

            [DTEND] => 20160107T173000Z
            [DTSTAMP_array] => Array
                (
                    [0] => Array
                        (
                            [TZID] => Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London
                        )

                    [1] => 20110121T195741Z
                )

            [DTSTAMP] => 20110121T195741Z

            ...
        )

@u01jmg3 u01jmg3 added the v1.x.x label Aug 21, 2016
@u01jmg3 u01jmg3 modified the milestone: v1.x.x Sep 5, 2016
@u01jmg3 u01jmg3 removed the v1.x.x label Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants