Skip to content

Commit 6a8f11b

Browse files
committed
MAGETWO-72670: Deprecate wrapper methods for datetime handling
1 parent 8c4ba3c commit 6a8f11b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public function isEmptyDate($date)
7979
* @param int $time
8080
* @return string The given time in given format
8181
*
82+
* @deprecated
83+
* @see Use Intl library for datetime handling: http://php.net/manual/en/book.intl.php
84+
*
8285
* @codeCoverageIgnore
8386
*/
8487
public function gmDate($format, $time)
@@ -92,6 +95,9 @@ public function gmDate($format, $time)
9295
* @param string $timeStr
9396
* @return int
9497
*
98+
* @deprecated
99+
* @see Use Intl library for datetime handling: http://php.net/manual/en/book.intl.php
100+
*
95101
* @codeCoverageIgnore
96102
*/
97103
public function strToTime($timeStr)

0 commit comments

Comments
 (0)