mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
C locale applied to all of e_dateTest
This commit is contained in:
2
e107
2
e107
Submodule e107 updated: 78213c4a31...2b24346a8a
@@ -16,6 +16,9 @@
|
||||
|
||||
protected function _before()
|
||||
{
|
||||
// Expected values made using the C locale
|
||||
setlocale(LC_TIME, 'C');
|
||||
|
||||
try
|
||||
{
|
||||
$this->dateObj = $this->make('e_date');
|
||||
@@ -208,9 +211,6 @@
|
||||
|
||||
public function testConvert_date()
|
||||
{
|
||||
// Expected values made using the C locale
|
||||
setlocale(LC_TIME, 'C');
|
||||
|
||||
// will probably fail on windows
|
||||
$actual = $this->dateObj->convert_date(mktime(12, 45, 03, 2, 5, 2018), 'long');
|
||||
$expected = 'Monday 05 February 2018 - 12:45:03';
|
||||
|
Reference in New Issue
Block a user