first commit

This commit is contained in:
2024-10-28 22:14:22 +01:00
commit b65352c452
40581 changed files with 5712079 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace PrestaShop\Module\PsEventbus\Formatter;
use DateTime;
use Exception;
class DateFormatter
{
/**
* @param string $date
*
* @return string
*/
public function convertToIso8061($date)
{
try {
return (new DateTime($date))->format(DateTime::ISO8601);
} catch (Exception $e) {
return $date;
}
}
}