1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

C locale applied to all of e_dateTest

This commit is contained in:
Deltik
2018-06-09 22:34:49 -05:00
parent f8d74ce2e5
commit e6a098cc33
2 changed files with 4 additions and 4 deletions

2
e107

Submodule e107 updated: 78213c4a31...2b24346a8a

View File

@@ -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';