This commit is contained in:
DariusIII
2023-03-02 21:00:53 +01:00
parent 8545217cc3
commit 40f4d66f1e
4 changed files with 13 additions and 20 deletions
@@ -68,27 +68,27 @@ function smarty_modifier_phpdate_format($string, $format = 'Y/m/d H:i:s', $defau
if (substr($format, 0, 5) == 'DATE_') {
switch ($format) {
case 'DATE_ATOM': $nformat = DATE_ATOM;
break;
break;
case 'DATE_COOKIE': $nformat = DATE_COOKIE;
break;
break;
case 'DATE_ISO8601': $nformat = DATE_ISO8601;
break;
break;
case 'DATE_RFC822': $nformat = 'D, d M y H:i:s O';
break; //The php constant is not quite right - as the time-zone comes out with invalid values like "UTC"...
break; //The php constant is not quite right - as the time-zone comes out with invalid values like "UTC"...
case 'DATE_RFC850': $nformat = DATE_RFC850;
break;
break;
case 'DATE_RFC1036': $nformat = DATE_RFC1036;
break;
break;
case 'DATE_RFC1123': $nformat = DATE_RFC1123;
break;
break;
case 'DATE_RFC2822': $nformat = DATE_RFC2822;
break;
break;
case 'DATE_RFC3339': $nformat = DATE_RFC3339;
break;
break;
case 'DATE_RSS': $nformat = 'D, d M Y H:i:s O';
break; //as rfc822 ...
break; //as rfc822 ...
case 'DATE_W3C': $nformat = DATE_W3C;
break;
break;
}
} else {
$nformat = $format;