1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 04:40:44 +02:00

C locale in e_dateTest::testConvert_date()

Standardized locale in e_dateTest::testConvert_date()
This commit is contained in:
Deltik
2018-05-24 19:41:46 -05:00
parent 6fe881a94f
commit c0cc29d830
2 changed files with 4 additions and 1 deletions

2
e107

Submodule e107 updated: 1494c18660...78213c4a31

View File

@@ -180,6 +180,9 @@
public function testConvert_date() public function testConvert_date()
{ {
// Expected values made using the C locale
setlocale(LC_TIME, 'C');
// will probably fail on windows // will probably fail on windows
$actual = $this->dateObj->convert_date(mktime(12, 45, 03, 2, 5, 2018), 'long'); $actual = $this->dateObj->convert_date(mktime(12, 45, 03, 2, 5, 2018), 'long');
$expected = 'Monday 05 February 2018 - 12:45:03'; $expected = 'Monday 05 February 2018 - 12:45:03';