1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Tests: Fix "September" behavior difference in testBuildDateLocale()

Whether "Sep" or "Sept" is the short month name for "%h" apparently
depends on `DateTime` or ext-intl, not on whether Microsoft Windows is
used.  Or something like that.  PHP is weird…
This commit is contained in:
Nick Liu 2022-12-29 21:55:12 +01:00
parent cd5c94ecb4
commit 43792c4505
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -127,7 +127,7 @@
{
$actual = $this->dateObj->buildDateLocale();
$september = (stripos(PHP_OS, 'WIN') === 0) ? 'Sept' : 'Sep';
$september = eShims::strftime('%h', mktime(1, 1, 1, 9, 2, 2013));
$this->assertStringContainsString('$.fn.datetimepicker.dates["en"]', $actual);
$this->assertStringContainsString('days: ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],', $actual);