We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 072a1ae commit bd27434Copy full SHA for bd27434
lib/internal/Magento/Framework/Stdlib/DateTime/Filter/DateTime.php
@@ -37,15 +37,15 @@ public function __construct(\Magento\Framework\Stdlib\DateTime\TimezoneInterface
37
*
38
* @param string $value
39
* @return string
40
- * @throws LocalizedException
+ * @throws \Exception
41
*/
42
public function filter($value)
43
{
44
try {
45
- $value = new \DateTime($value);
46
- return $value->format('Y-m-d H:i:s');
+ $dateTime = new \DateTime($value);
+ return $dateTime->format('Y-m-d H:i:s');
47
} catch (\Exception $e) {
48
- throw new \Exception('Invalid input datetime format');
+ throw new \Exception((string)__("Invalid input datetime format of value '%1'", $value));
49
}
50
51
0 commit comments