You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✏️ Describe the bug
Hello, I have issue with timezones from PostgreSQL. Returned date has timezone '+01:00' instead of 'Europe/Prague', generated iCal using this DateTime instance does not work.
↪️ To Reproduce
Provide us a test like this one which shows the problem:
$dtzA = newDateTimeZone('Europe/Prague'); // This works ok!$dtzB = newDateTimeZone('+01:00'); // I get this from PostgreSQL using doctrine/orm and it does not work.$startDate = newDateTime('now', $dtzA);
$endDate = newDateTime('+2 hours', $dtzB);
$cal = Calendar::create('Test');
$cal->event(Event::create('Hello, World!')
->startsAt($startDate)
->endsAt($endDate)
);
✏️ Describe the bug
Hello, I have issue with timezones from PostgreSQL. Returned date has timezone '+01:00' instead of 'Europe/Prague', generated iCal using this DateTime instance does not work.
↪️ To Reproduce
Provide us a test like this one which shows the problem:
Output on: https://icalvalidator.com/index.html
Assertions aren't required, a simple dump or dd statement of what's going wrong is good enough 😄
✅ Expected behavior
I would expect that TZ +01:00 would work the same way as if I set Europe/Prague.
🖥️ Versions
iCalendar generator: 2.6.0
PHP: 8.3.2
The text was updated successfully, but these errors were encountered: