kpw81
10-28-2008, 08:01 AM
hello,
i have some php scripts which contain variables to store the current time. i've been doing some research about how to change the default timezone so that the times all show up as local time for me (i'm in the uk). i have read (but don't know how to do it) that you can add some code to the php.ini file to change the default timezone.
there are 2 ways that i have found, one is to set the timezone, which seems the obvious route to go, but i've read that it is also possible to set the longitude and latitude of a location and that will determine the timezone used.
my first question is, is there any advantages/disadvantages to using either one of these two methods? and secondly, could someone help me to set the default timezone so that all times that are used are shown as uk time.
one final note, do either of the above methods take into account daylight saving? if not, is there an alternative method which does?
thank you
karl
i have some php scripts which contain variables to store the current time. i've been doing some research about how to change the default timezone so that the times all show up as local time for me (i'm in the uk). i have read (but don't know how to do it) that you can add some code to the php.ini file to change the default timezone.
there are 2 ways that i have found, one is to set the timezone, which seems the obvious route to go, but i've read that it is also possible to set the longitude and latitude of a location and that will determine the timezone used.
my first question is, is there any advantages/disadvantages to using either one of these two methods? and secondly, could someone help me to set the default timezone so that all times that are used are shown as uk time.
one final note, do either of the above methods take into account daylight saving? if not, is there an alternative method which does?
thank you
karl