Jump to content

date() and used while loop to iterate and get users


scrubbicus

Recommended Posts

Two questions.

 

First off my date() when I was testing it on my computer it gave me my time (PST) and I just uploaded everything a few moments ago and now it's 2 hours ahead of my time. Is that because my host is probably in a time zone that's ahead of me? Is there anyway to set the time in accordance with time zones? If not then is there a way I can just set it to PST?

 

 

Any help would be awesome.

Thanks.

 

if you're on shared hosting you most likely don't have access to the php.ini

 

so you'd have to use

 

date_default_timezone_set in each php script you have that uses date.

 

if you do have access to php.ini

 

try

 

ini_set

setting the value of 'date.timezone' to your timezone..

 

--

 

Either way lol, both work the same way.. You could open up the php ini manually and change it and save it permanently..  but only if you have access..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.