Browse Source

Merge pull request #113 from Macil/tzfix

Output times in UTC
pull/40/head
Michael 11 years ago
parent
commit
68c6a749f2
  1. 5
      inc/lib/Twig/Extensions/Extension/Tinyboard.php

5
inc/lib/Twig/Extensions/Extension/Tinyboard.php

@ -57,8 +57,7 @@ class Twig_Extensions_Extension_Tinyboard extends Twig_Extension
}
function twig_timezone_function() {
// there's probably a much easier way of doing this
return sprintf("%s%02d", ($hr = (int)floor(($tz = date('Z')) / 3600)) > 0 ? '+' : '-', abs($hr)) . ':' . sprintf("%02d", (($tz / 3600) - $hr) * 60);
return 'Z';
}
function twig_split_filter($str, $delim) {
@ -75,7 +74,7 @@ function twig_remove_whitespace_filter($data) {
}
function twig_date_filter($date, $format) {
return strftime($format, $date);
return gmstrftime($format, $date);
}
function twig_hasPermission_filter($mod, $permission, $board = null) {

Loading…
Cancel
Save