Skip to content

Commit

Permalink
Merge pull request #413 from mlocati/metazone-empty-array
Browse files Browse the repository at this point in the history
getTimezoneNameNoLocationSpecific should not return empty arrays
  • Loading branch information
mlocati committed Aug 18, 2021
2 parents 64db772 + 27b35a3 commit 0195a49
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/data/en-AU/timeZoneNames.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/en-CA/timeZoneNames.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/en-IN/timeZoneNames.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/nl/timeZoneNames.php

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions tests/Calendar/CalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,10 @@ public function testGetTimezoneNameNoLocationSpecific()
'Western European Standard Time',
Calendar::getTimezoneNameNoLocationSpecific($dt, 'long')
);
$this->assertSame(
'',
Calendar::getTimezoneNameNoLocationSpecific(new DateTimeZone('Asia/Kathmandu'), 'short', '', 'nl')
);
}

public function testGetTimezoneNameLocationSpecific()
Expand Down

0 comments on commit 0195a49

Please sign in to comment.