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

Calling render() multiple times on Calendar duplicates Timezone #164

Open
thexeos opened this issue Jun 10, 2020 · 0 comments
Open

Calling render() multiple times on Calendar duplicates Timezone #164

thexeos opened this issue Jun 10, 2020 · 0 comments
Labels
Projects

Comments

@thexeos
Copy link

thexeos commented Jun 10, 2020

In example5.php, calling $vCalendar->render() one more time produces duplicate BEGIN:VTIMEZONE in the output. Additional calls will each add a duplicate VTIMEZONE to the file.

Why it happens: when properties are joined in Calendar->buildPropertyBag, the Timezone is added as a child component with every invocation.

My use case was logging the output of render() independent from the function that prints out the calendar for the client. For now I use a variable to keep the render for logging.

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

No branches or pull requests

2 participants