Skip to content

Commit 0d0c210

Browse files
authored
Fix static test
1 parent e27de55 commit 0d0c210

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
namespace Magento\Framework\Stdlib\DateTime;
88

9+
use Magento\Framework\Exception\LocalizedException;
10+
911
/**
1012
* Timezone Interface
1113
* @api
@@ -122,6 +124,8 @@ public function getConfigTimezone($scopeType = null, $scopeCode = null);
122124
public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);
123125

124126
/**
127+
* Format date according to date and time formats, locale, timezone and pattern.
128+
*
125129
* @param string|\DateTimeInterface $date
126130
* @param int $dateType
127131
* @param int $timeType
@@ -140,9 +144,14 @@ public function formatDateTime(
140144
);
141145

142146
/**
147+
* Convert date from config timezone to UTC.
148+
*
149+
* If pass \DateTime object as argument be sure that timezone is the same with config timezone
150+
*
143151
* @param string|\DateTimeInterface $date
144152
* @param string $format
145153
* @return string
154+
* @throws LocalizedException
146155
* @since 100.1.0
147156
*/
148157
public function convertConfigTimeToUtc($date, $format = 'Y-m-d H:i:s');

0 commit comments

Comments
 (0)