diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-02 01:45:14 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-02 01:45:14 +1100 |
| commit | 9ba2638ad73c891e9a19247f0932fed3eb45ccff (patch) | |
| tree | 9bc78f1ae927231b0542f2ace3b09ecb3d8940be /inc | |
| parent | d46c40652cf0710c75d7cc1d929ed9f2aa106411 (diff) | |
Configurable post time format
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/config.php | 4 | ||||
| -rw-r--r-- | inc/display.php | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/inc/config.php b/inc/config.php index 79f4bf1e..5e9aa365 100644 --- a/inc/config.php +++ b/inc/config.php @@ -220,6 +220,10 @@ define('BUTTON_NEWTOPIC', 'New Topic', true); define('BUTTON_REPLY', 'New Reply', true); + // The string passed to date() for post times + // http://php.net/manual/en/function.date.php + define('POST_DATE', 'm/d/y (D) H:i:s', true); + define('ALWAYS_NOKO', false, true); define('URL_MATCH', '/^' . diff --git a/inc/display.php b/inc/display.php index 32eb9cb2..0f1a6c07 100644 --- a/inc/display.php +++ b/inc/display.php @@ -128,7 +128,7 @@ $built .= '</a>'; // Date/time - $built .= ' ' . date('m/d/y (D) H:i:s', $this->time); + $built .= ' ' . date(POST_DATE, $this->time); $built .= ' <a class="post_no"' . // JavaScript highlight @@ -271,7 +271,7 @@ $built .= '</a>'; // Date/time - $built .= ' ' . date('m/d/y (D) H:i:s', $this->time); + $built .= ' ' . date(POST_DATE, $this->time); $built .= ' <a class="post_no"' . // JavaScript highlight |
