summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php5
-rw-r--r--inc/contrib/Twig/Extensions/Extension/Tinyboard.php2
2 files changed, 4 insertions, 3 deletions
diff --git a/inc/config.php b/inc/config.php
index c85ca039..eaeac0b0 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -443,9 +443,10 @@
// Inline expanding of images with Javascript
$config['inline_expanding'] = true;
- // The string passed to date() for post times
- // http://php.net/manual/en/function.date.php
+ // The format string passed to strftime() for post times
+ // http://www.php.net/manual/en/function.strftime.php
$config['post_date'] = 'm/d/y (D) H:i:s';
+ $config['post_date'] = '%m/%d/%y (%a) %H:%M:%S';
// The names on the post buttons. (On most imageboards, these are both "Post")
$config['button_newtopic'] = 'New Topic';
diff --git a/inc/contrib/Twig/Extensions/Extension/Tinyboard.php b/inc/contrib/Twig/Extensions/Extension/Tinyboard.php
index 3540c1a3..93bda9f3 100644
--- a/inc/contrib/Twig/Extensions/Extension/Tinyboard.php
+++ b/inc/contrib/Twig/Extensions/Extension/Tinyboard.php
@@ -40,7 +40,7 @@ function twig_remove_whitespace_filter($data) {
}
function twig_date_filter($date, $format) {
- return date($format, $date);
+ return strftime($format, $date);
}
function twig_hasPermission_filter($mod, $permission, $board) {