I'm almost done with a website and I have an email form that I am using PHP to send emails. The server that I have the site on is on GMT time. I want the output time of that php script to give me the CST which is -0600. Below is my date() function. $todayis = date("l, F j, Y, g:i a \[T\]") ; This is really frustrating me that I can't find the answer but maybe someone here can help. Does anyone know a work around to this issue. I don't want to have to convert between time zones every time we get comments from the site. Thanks a bunch. The site and form if you guys are interested is http://kidsdepotlearning.com and go to the contacts tab.
try using the timestamp feature minus -600 minutes. i.e. pseudo code: date("...", time()-600) ; time() is acurate up to the millisec so it's not -600 but i don't want to do the math. this is just the top of my head.. see if it works.
00101011001010000010100111101001000101011100100100010001001000010101000101001000001001010010111001000100101 You're welcome.
actually i'm wrong.. time() is accurate up to the second. try this: $todayis = date("l, F j, Y, g:i a \[T\]", time() - (6 * 60 * 60)) ;