Skip to content

Commit 6cc9034

Browse files
committed
Revert back documentation change in API interface
1 parent ddeaf36 commit 6cc9034

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public function convertConfigTimeToUtc($date, $format = 'Y-m-d H:i:s')
327327
}
328328

329329
$date->setTimezone(new \DateTimeZone('UTC'));
330-
330+
331331
return $date->format($format);
332332
}
333333

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public function formatDate(
104104

105105
/**
106106
* Gets the scope config timezone
107-
*
108107
* @param string $scopeType
109108
* @param string $scopeCode
110109
* @return string
@@ -122,7 +121,6 @@ public function getConfigTimezone($scopeType = null, $scopeCode = null);
122121
public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);
123122

124123
/**
125-
*
126124
* @param string|\DateTimeInterface $date
127125
* @param int $dateType
128126
* @param int $timeType
@@ -141,14 +139,10 @@ public function formatDateTime(
141139
);
142140

143141
/**
144-
* Convert date from config timezone to Utc.
145-
*
146-
* If pass \DateTime object as argument be sure that timezone is the same with config timezone
147-
*
148142
* @param string|\DateTimeInterface $date
149143
* @param string $format
150-
* @throws LocalizedException
151144
* @return string
145+
* @since 100.1.0
152146
*/
153147
public function convertConfigTimeToUtc($date, $format = 'Y-m-d H:i:s');
154148
}

0 commit comments

Comments
 (0)