From 20b3e0f61de74ddbf924548c06e42d077478aed3 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 2 Oct 2016 13:36:25 +0300 Subject: [PATCH] Fix for tests --- tests/_support/AcceptanceTester.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/_support/AcceptanceTester.php b/tests/_support/AcceptanceTester.php index 0db82aea53..8098444d2e 100644 --- a/tests/_support/AcceptanceTester.php +++ b/tests/_support/AcceptanceTester.php @@ -39,8 +39,8 @@ class AcceptanceTester extends \Codeception\Actor function selectDataPicker(\AcceptanceTester $I, $element, $date = 'now') { - $_date = date('Y, m, d', strtotime($date)); - $I->executeJS(sprintf('$(\'%s\').datepicker(\'update\', new Date(%s))', $element, $_date)); + $date = strtotime($date) * 1000; + $I->executeJS(sprintf('$(\'%s\').datepicker(\'update\', new Date(%s))', $element, $date)); } function selectDropdown(\AcceptanceTester $I, $option, $dropdownSelector)