|
Posted by jgbjr on 06/02/07 17:44
In php 5 (I'm not sure about 4) you can use the INI setting date.timezone to
set the default timezone. Or use
ini_set('date.timezone', 'America/New_York');
Or whatever timezone you are in. Here is the link to the supported
timezones:
http://us.php.net/manual/en/timezones.php
"Anonymous Chief" <anonySMACKmouschief@gmail.com> wrote in message
news:yvk6i.229300$DE1.109225@pd7urf2no...
> Thanx Dilemma and Rauch Christian. I will give your suggestions a try.
>
> What would I do to have php display the client's local time based on the
> time on the local computer as opposed to server time?
>
> "Anonymous Chief" <anonySMACKmouschief@gmail.com> wrote in message
> news:93N5i.220325$DE1.20683@pd7urf2no...
>>I currently have a script to show webserver time. The downside is that I
>>have moved from where the server is and am now 2 hours behind.
>>
>> How can I modify my sdcript to show server time minus 2 hours? The script
>> below only shows server date and time:
>>
>> <?php
>> echo date ("l d F, Y - H:i.s");
>>
>> I have tried:
>> <?php
>>
>> echo date ("l d F, Y - H-2:i.s");
>>
>> ...but it would only show Friday 25 May, 2007 - 22-2:40.53
>>
>> Could someone please help me.
>>
>> Thanx
>>
>> Anonymous Chief
>>
>>
>
>
Navigation:
[Reply to this message]
|