Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 9315dd6

Browse files
committed
Revert back code change to fix BiC
1 parent 16a7f0b commit 9315dd6

2 files changed

Lines changed: 14 additions & 16 deletions

File tree

lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,13 @@ public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null)
257257
}
258258

259259
/**
260-
* @inheritdoc
260+
* @param string|\DateTimeInterface $date
261+
* @param int $dateType
262+
* @param int $timeType
263+
* @param string|null $locale
264+
* @param string|null $timezone
265+
* @param string|null $pattern
266+
* @return string
261267
*/
262268
public function formatDateTime(
263269
$date,
@@ -293,7 +299,13 @@ public function formatDateTime(
293299
}
294300

295301
/**
296-
* @inheritdoc
302+
* Convert date from config timezone to Utc.
303+
* If pass \DateTime object as argument be sure that timezone is the same with config timezone
304+
*
305+
* @param string|\DateTimeInterface $date
306+
* @param string $format
307+
* @throws LocalizedException
308+
* @return string
297309
*/
298310
public function convertConfigTimeToUtc($date, $format = 'Y-m-d H:i:s')
299311
{

lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,4 @@ public function formatDateTime(
152152
* @deprecated
153153
*/
154154
public function convertConfigTimeToUtc($date, $format = 'Y-m-d H:i:s');
155-
156-
/**
157-
* Convert date from config timezone to Utc.
158-
*
159-
* If pass \DateTime object as argument be sure that timezone is the same with config timezone
160-
*
161-
* @param string|\DateTimeInterface $date
162-
* @param string $format
163-
* @param string $pattern
164-
* @throws LocalizedException
165-
* @return string
166-
* @deprecated
167-
*/
168-
public function convertConfigTimeToUtcWithPattern($date, $format = 'Y-m-d H:i:s', $pattern = 'Y-m-d H:i:s');
169155
}

0 commit comments

Comments
 (0)