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

Where to adjust for timezones? #13

Open
emign opened this issue Feb 22, 2021 · 1 comment
Open

Where to adjust for timezones? #13

emign opened this issue Feb 22, 2021 · 1 comment

Comments

@emign
Copy link

emign commented Feb 22, 2021

Hallo,
I generate an ics from a json.
The json input is eg:

[8] => Array
                (
                    [name] => Title
                    [date] => 2021-04-22
                    [time] => 17:30
                    [duration] => 1h
                )

the output from phpcalfeedconvert is

BEGIN:VEVENT
DTSTART:20210422T153000
DTEND:20210422T163000
SUMMARY: Title
END:VEVENT

The timezone seems off. How can I adjust for that?

@Frimkron
Copy link
Owner

Hmm.. that's odd. The iCalendar output always uses UTC date-times so I would expect to see the DTSTART and DTEND values have a Z specifier on the end to reflect this. The Z is actually hard-coded.

The calendar script doesn't have its own time zone setting yet, unfortunately. It uses the default time zone specified in your php.ini file and assumes all times are local time. iCalendar requires times to be defined unambiguously so they are output as UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants