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.

 

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.