Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

PostPosted: Wed Mar 11, 2009 8:32 pm Reply with quote

I have a schedule for a country where the timezones differ.

I wanted to have a clock that stayed on the timezone I want it to so people can match up the times with the schedule.

I have looked at terrible flash clock blocks that never work for me.


The clock MUST be able to to set as GMT+10 and show that for every user.


Where can I get this?
 
View user's profile Send private message
pan
PostPosted: Wed Mar 11, 2009 9:52 pm Reply with quote

ok never mind that

is there a way to change the server time that shows up in the User Info block?

I need to remove 1 hour. it is GMT+11 on the server but i want it to display GMT+10
 
pan
PostPosted: Wed Mar 11, 2009 10:17 pm Reply with quote

ok so it's as easy as editing $zone in user info block


i just don't know what +10 is
 
pan
PostPosted: Wed Mar 11, 2009 10:20 pm Reply with quote

pan wrote:
ok so it's as easy as editing $zone in user info block


i just don't know what +10 is


ok so it works in 360 so 3600 (+11) + 360 = +10 GMT
Only registered users can see links on this board! Get registered or login!


now i can't change the time by 1 hour


OMG Evil or Very Mad


ps. I am posting this for anyone else who comes accross this issue. All the other threads i read were useless to me
 
pan
PostPosted: Wed Mar 11, 2009 10:30 pm Reply with quote

How would I change the time to remove 1 hour from it:
Code:


}
    $sdt = date('j F Y'."\n".'H:i:s T');
    $zone = date('Z')/3960;
    if ($zone >= 0) {
        $zone = '+'.$zone;
    }


I have already removed an hour from the timezone but I just want to change the time to remove 1 hour to match the timezone.
 
duck
Involved
Involved


Joined: Jul 03, 2006
Posts: 273

PostPosted: Thu Mar 12, 2009 7:32 am Reply with quote

one solution out of many you could use

Code:
 strtotime("-1 hour", $zone);
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©