Game Time : Which File?

Started by Sicarius, February 16, 2007, 02:23:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sicarius

I want to change the names of the date[month, days etc] and the time - GMT.
I don't know in which folder of the rwl files the code reside.




RS-Wolf Methos

windhound

er.  rwl uses php's date('r')

example, from the scores page (top10.php): 
Current Game Time: <?=$datetime?><br><br>
with $datetime being set in const.php
$datetime = date('r');

http://us2.php.net/date
A Goldfish has an attention span of 3 seconds...  so do I
~ In the beginning there was nothing, which exploded ~
There are only 10 types of people in the world: Those who understand binary, and those who don't

Sicarius

Ok thanks, i'm already understood this.
The problem now is the GMT.
It  shows me -5...but i need +2.

You have any idea how to change this?



RS-Wolf Methos

windhound

I honestly dont know php.  I know a little of several different languages, primary being java, which allows me to get around, poke and prod where needed, the online php manual has helped me quite a bit

if you had gone to the link in my last post you would have seen the option
QuoteO   Difference to Greenwich time (GMT) in hours   Example: +0200

as far as different languages,
try this:  http://us3.php.net/setlocale
if you want fictional settings those are doable, just significantly harder

the php manual + google is a very nice resource
A Goldfish has an attention span of 3 seconds...  so do I
~ In the beginning there was nothing, which exploded ~
There are only 10 types of people in the world: Those who understand binary, and those who don't