Page 1 of 1
GMT TIME help!
Posted: Thu Sep 30, 2004 8:41 pm
by LostMyLove
i was tring to make an script, that users(was registred in script, the members) set the time with his GMT local to works for all peoples was visiting his site..
but i don't get it to works
can someone help me?
Posted: Thu Sep 30, 2004 9:01 pm
by feyd
can you speak english?
post some code.
Posted: Thu Sep 30, 2004 9:09 pm
by LostMyLove
i don't have the codes, because nones i tried works...
i just want to make time to work in GMT (and user can selected the offset of it (-12 to 12 )
Posted: Thu Sep 30, 2004 9:13 pm
by feyd
well.. having a real good look at the time functions, low and behold, this showed up: [php_man]gmmktime[/php_man]
Posted: Fri Oct 01, 2004 4:47 pm
by LostMyLove
can u give me an example?
i don't get the message of the manual :/
hard to understand
Posted: Fri Oct 01, 2004 4:57 pm
by feyd
how hard is it to search?
[big_search]gmmktime[/big_search]
Posted: Fri Oct 01, 2004 5:03 pm
by denlou
Posted: Fri Oct 01, 2004 7:28 pm
by Joe
What the hell is that picture all about. I think a moderator should remove that!
Posted: Sat Oct 02, 2004 12:58 am
by John Cartwright
I had a good laugh, and may it be a warning for people that ask TOOOOOO many questions without trying things out

you get the pillow treatment
Posted: Sat Oct 02, 2004 2:54 am
by denlou
Finally, somebody with a sense of humor
Just did a google image search for "gun".
Posted: Sat Oct 02, 2004 9:30 am
by John Cartwright
denlou wrote:Finally, somebody with a sense of humor
Just did a google image search for "gun".
Just don't make throwing in random pictures a habbit.
Posted: Sat Oct 02, 2004 4:46 pm
by JasonMichael
Here you go:
Code: Select all
<?php
function jmr_get_time ($zone) {
$zone=3600*$zone;//-5 for EAstern USA / -4 for Eastern Day Time USA
$datetime=gmdate("Y-d-m H:i:s", time() + $zone); // modify the format however you want it.
return $datetime;
}
?>
Hope that helps.