Hi All!!! im currently at a roadblock in my knowledge of using mysql and php date/time functions. the program i am trying to write, needs to incoporate the current date in the mysql query to pull the correct information to display in real-time.. currently the server is on east coast time, and the program will be based on Arizona time... beyond changing the php.ini file for php what can i do client side to remedy this... thanks again for your ideas!!!!

Set the timezone for use by your PHP code.

date_default_timezone_set('EST');

Member Avatar for LastMitch

@duneflyingyfz

Used the code what blocblue mention.

<?php
date_default_timezone_set("America/Phoenix");
?>

Here is the manual for each state:

http://www.php.net/manual/en/timezones.america.php

I hope this is what you are asking.

thankyou all thats exactly what i needed!! cant believe i overlooked this part in the php manual

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.