2
I'm a complete n00b to XOOPS and all that goes with it. I also wanted to change this as it's not a logical format for my users to follow.
I'll probably be burnt at the stake for the way I did it but I just changed the code in the index.php file so that no matter what the _SHORTDATESTRING result was, the format was the same for all three options (n/j/Y, j/n/Y, Y/n/j) [where j=day, n=month & Y=year]. I know I should have found the file where the string is defined, but I've been up for too long and I got tired of looking at the screen.
Anyhow, my index.php now contains the following (I'm sure you'll find the part I'm referring to):
if (_SHORTDATESTRING == "n/j/Y") {
$date_str .= _($week[$weekday]).' '.$d.$dateSuffix['ri'].' '._($maand[$m]).' '.$y.$dateSuffix['nian'];
} elseif (_SHORTDATESTRING == "j/n/Y") {
$date_str .= _($week[$weekday]).' '.$d.$dateSuffix['ri'].' '._($maand[$m]).' '.$y.$dateSuffix['nian'];
} else { //default to "Y/n/j"
$date_str .= _($week[$weekday]).' '.$d.$dateSuffix['ri'].' '._($maand[$m]).' '.$y.$dateSuffix['nian'];
}
The result? -->
Today is Thursday 6 January 2005It's not pretty but it works for me