From 3f6242c9d0866217c921a6fbdec1e1991a218268 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Tue, 19 Feb 2008 20:33:25 +0000 Subject: [PATCH] fixing date issues and contextually language: this should make it work finally both on windows and linux, yay! --- fp-includes/core/core.theme.php | 4 ++-- fp-interface/lang/en-us/lang.default.php | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/fp-includes/core/core.theme.php b/fp-includes/core/core.theme.php index df6830d..2b21a1c 100644 --- a/fp-includes/core/core.theme.php +++ b/fp-includes/core/core.theme.php @@ -350,12 +350,12 @@ // D l day if ( strpos($format, '%a') !== false ) { - $i = strftime('%u', $timestamp); + $i = strftime('%w', $timestamp); $format = str_replace('%a', $lang['date']['weekday_abbr'][$i], $format); } if ( strpos($format, '%A') !== false ) { - $i = strftime('%u', $timestamp); + $i = strftime('%w', $timestamp); $format = str_replace('%A', $lang['date']['weekday'][$i], $format); } diff --git a/fp-interface/lang/en-us/lang.default.php b/fp-interface/lang/en-us/lang.default.php index 832ea83..3142108 100755 --- a/fp-interface/lang/en-us/lang.default.php +++ b/fp-interface/lang/en-us/lang.default.php @@ -174,24 +174,26 @@ $lang['date']['weekday'] = array( - 1=>'Monday', + 'Sunday', + 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', - 'Sunday' + ); $lang['date']['weekday_abbr'] = array( - 1=>'Mon', + 'Sun', + 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', - 'Sun' + );