UBB.Dev
Posted By: Tech-Ni-Kal PHP: Date and Time problems - 06/06/2003 9:40 AM
Currently I am using this code to display the current date and time.

$date_time = date('l M d, Y @ g:i A');
echo ($date_time);


The only problem is that it displays the time in EST, which is a concern, because the site will only be needed for people in the CST. Is there any PHP or whatnot that I can use to offset the time to CST?

Thanks alot.
Posted By: Charles Capps Re: PHP: Date and Time problems - 06/06/2003 9:44 AM
RTFM ... smile

date() takes two arguments... the format and a unixtime. Just pass in an adjusted time.
Posted By: Tech-Ni-Kal Re: PHP: Date and Time problems - 06/07/2003 1:42 AM
Alright thanks alot. smile
© UBB.Developers