1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2025-02-21 10:54:14 +01:00

Fix array syntax for PHP 5.3

This commit is contained in:
rlanvin 2016-08-07 15:08:01 +03:00
parent fe83f6de05
commit 01d06e576d

View File

@ -561,7 +561,7 @@ class RRule implements RRuleInterface
$dtstart->setTimezone(new \DateTimeZone('UTC'));
$timezone_name = 'UTC';
}
if ( in_array($timezone_name, ['UTC','GMT','Z']) ) {
if ( in_array($timezone_name, array('UTC','GMT','Z')) ) {
$str = sprintf(
"DTSTART:%s\nRRULE:",
$dtstart->format('Ymd\THis\Z')