1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00

Configurable post time format

This commit is contained in:
Savetheinternet 2011-01-02 01:45:14 +11:00
parent d46c40652c
commit 9ba2638ad7
2 changed files with 6 additions and 2 deletions

View File

@ -220,6 +220,10 @@
define('BUTTON_NEWTOPIC', 'New Topic', true); define('BUTTON_NEWTOPIC', 'New Topic', true);
define('BUTTON_REPLY', 'New Reply', 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('ALWAYS_NOKO', false, true);
define('URL_MATCH', '/^' . define('URL_MATCH', '/^' .

View File

@ -128,7 +128,7 @@
$built .= '</a>'; $built .= '</a>';
// Date/time // Date/time
$built .= ' ' . date('m/d/y (D) H:i:s', $this->time); $built .= ' ' . date(POST_DATE, $this->time);
$built .= ' <a class="post_no"' . $built .= ' <a class="post_no"' .
// JavaScript highlight // JavaScript highlight
@ -271,7 +271,7 @@
$built .= '</a>'; $built .= '</a>';
// Date/time // Date/time
$built .= ' ' . date('m/d/y (D) H:i:s', $this->time); $built .= ' ' . date(POST_DATE, $this->time);
$built .= ' <a class="post_no"' . $built .= ' <a class="post_no"' .
// JavaScript highlight // JavaScript highlight