diff --git a/inc/defines.php b/inc/defines.php
index ee8a04c..8b9a9a9 100644
--- a/inc/defines.php
+++ b/inc/defines.php
@@ -52,6 +52,9 @@ if (!defined('TINYIB_CATALOG')) {
if (!defined('TINYIB_JSON')) {
define('TINYIB_JSON', true);
}
+if (!defined('TINYIB_DATEFMT')) {
+ define('TINYIB_DATEFMT', 'y/m/d(D)H:i:s');
+}
if (!defined('TINYIB_DBMIGRATE')) {
define('TINYIB_DBMIGRATE', false);
}
diff --git a/inc/functions.php b/inc/functions.php
index 86f6d5a..6844a23 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -223,7 +223,7 @@ function nameBlock($name, $tripcode, $email, $timestamp, $rawposttext) {
$output = '' . $output . '';
}
- return $output . $rawposttext . ' ' . date('y/m/d(D)H:i:s', $timestamp);
+ return $output . $rawposttext . ' ' . date(TINYIB_DATEFMT, $timestamp);
}
function writePage($filename, $contents) {
@@ -331,7 +331,7 @@ function checkBanned() {
$ban = banByIP($_SERVER['REMOTE_ADDR']);
if ($ban) {
if ($ban['expire'] == 0 || $ban['expire'] > time()) {
- $expire = ($ban['expire'] > 0) ? ('
This ban will expire ' . date('y/m/d(D)H:i:s', $ban['expire'])) : '
This ban is permanent and will not expire.';
+ $expire = ($ban['expire'] > 0) ? ('
This ban will expire ' . date(TINYIB_DATEFMT, $ban['expire'])) : '
This ban is permanent and will not expire.';
$reason = ($ban['reason'] == '') ? '' : ('
Reason: ' . $ban['reason']);
fancyDie('Your IP address ' . $ban['ip'] . ' has been banned from posting on this image board. ' . $expire . $reason);
} else {
diff --git a/inc/html.php b/inc/html.php
index 0e5bb3a..2f509ef 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -791,9 +791,9 @@ function manageBansTable() {
if (count($allbans) > 0) {
$text .= '
' . __('IP Address') . ' | ' . __('Set At') . ' | ' . __('Expires') . ' | ' . __('Reason') . ' | |
---|---|---|---|---|
' . $ban['ip'] . ' | ' . date('y/m/d(D)H:i:s', $ban['timestamp']) . ' | ' . $expire . ' | ' . $reason . ' | ' . __('lift') . ' |
' . $ban['ip'] . ' | ' . date(TINYIB_DATEFMT, $ban['timestamp']) . ' | ' . $expire . ' | ' . $reason . ' | ' . __('lift') . ' |