Posted on: 01/01/03 10:56pm
By: broelling
I'm using the visitorstats block by Mr.GxBlock, and I'm very pleased with it.
However - I can't seem to get it to understand that it should be looking for my locale (Denmark), before it publishes any long month or days names. How can I get it to use the config.php variables for days and months instead of this, so it knows it's in Denmark!??
Code in the phpblock_newstats() function:
$dayofweek=date("l"
;
$month=date("F"
;
$day=date("d"
;
$year=date("Y"
;
$hour=date("H"
;
Local date
Posted on: 01/02/03 03:53am
By: Dirk
To quote from the PHP manual for date[*1] :
To format dates in other languages, you should use the setlocale() and strftime() functions.
In other words: You have to replace those date() calls with the corresponding calls to strftime() (Geeklog already calls setlocale() for you).
bye, Dirk
Local date
Posted on: 01/02/03 07:48am
By: broelling
Thanx...
Thinking about it, I guess I knew that - but my brain must be on standby since new years eve...---I'd rather be good than clever - I'd rather have all facts wrong, than no reply whatever...