From 457e4745201f47d32942f7ec31cd1c533d0d0972 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 20 Nov 2011 04:07:17 +1100 Subject: Use strftime() instead of date() to respect other languages. --- mod.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'mod.php') diff --git a/mod.php b/mod.php index fd65abd7..016aed41 100644 --- a/mod.php +++ b/mod.php @@ -105,7 +105,7 @@ utf8tohtml($notice['username']) : '???') . ' at ' . - date($config['post_date'], $notice['time']) . + strftime($config['post_date'], $notice['time']) . ''; } if(!empty($_body)) { @@ -597,7 +597,7 @@ '???' ) . ' at ' . - date($config['post_date'], $notice['time']) . + strftime($config['post_date'], $notice['time']) . '

' . $notice['body'] . '

'; } @@ -679,7 +679,7 @@ ' — by ' . $news['name'] . ' at ' . - date($config['post_date'], $news['time']) . + strftime($config['post_date'], $news['time']) . '

' . $news['body'] . '

'; } @@ -706,7 +706,7 @@ $body .= '' . '' . $pm['id'] . '' . '' . $pm['username'] . '' . - '' . date($config['post_date'], $pm['time']) . '' . + '' . strftime($config['post_date'], $pm['time']) . '' . '' . pm_snippet($pm['message']) . '' . ''; @@ -791,7 +791,7 @@ '' : '') . - 'Date ' . date($config['post_date'], $pm['time']) . '' . + 'Date ' . strftime($config['post_date'], $pm['time']) . '' . 'Message ' . $pm['message'] . '' . @@ -1327,7 +1327,7 @@ '
' . 'Board: ' . sprintf($config['board_abbreviation'], $report['uri']) . '
' . 'Reason: ' . $report['reason'] . '
' . - 'Report date: ' . date($config['post_date'], $report['time']) . '
' . + 'Report date: ' . strftime($config['post_date'], $report['time']) . '
' . (hasPermission($config['mod']['show_ip']) ? 'Reported by: ' . $report['ip'] . '
' : '') . @@ -1559,14 +1559,14 @@ ) . '' . // Set - '' . date($config['post_date'], $ban['set']) . '' . + '' . strftime($config['post_date'], $ban['set']) . '' . // Expires '' . ($ban['expires'] == 0 ? 'Never' : - date($config['post_date'], $ban['expires']) + strftime($config['post_date'], $ban['expires']) ) . '' . @@ -2481,7 +2481,7 @@ '' . $note['body'] . '' . - date($config['post_date'], $note['time']) . + strftime($config['post_date'], $note['time']) . '' . (hasPermission($config['mod']['remove_notes']) ? '[delete]' @@ -2550,14 +2550,14 @@ '' . // Set - 'Set' . date($config['post_date'], $ban['set']) . '' . + 'Set' . strftime($config['post_date'], $ban['set']) . '' . // Expires 'Expires' . ($ban['expires'] == 0 ? 'Never' : - date($config['post_date'], $ban['expires']) + strftime($config['post_date'], $ban['expires']) ) . '' . -- cgit v1.3