first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
/**
* Smarty plugin.
*/
/**
* Smarty {format_datetime} function plugin.
*/
function smarty_modifier_format_datetime($string, $value = null)
{
if ($string == '-0001-11-30') {
return '00-00-0000';
} elseif ($string instanceof \DateTime) {
$datetime = $string;
} elseif (empty($string)) {
return '';
} else {
$datetime = new DateTime($string);
}
$format = Settings::getDateFormat().' '.Settings::getTimeFormat();
return $datetime->format($format);
}