Local sunset time.
Moderator: General Moderators
Local sunset time.
Hi, I'm writing a script that would need to change every day at sunset. My question is, how can I get the client's local time and how can I find out when sunset is for his time zone?
Re: Local sunset time.
if you want get client's local time you have to use javascript.
but with date_default_timezone_get you can get server's default time zone
-------------------------------------------------
date_default_timezone_get
(PHP 5 >= 5.1.0RC1)
date_default_timezone_get -- Gets the default timezone used by all date/time functions in a script
but with date_default_timezone_get you can get server's default time zone
-------------------------------------------------
date_default_timezone_get
(PHP 5 >= 5.1.0RC1)
date_default_timezone_get -- Gets the default timezone used by all date/time functions in a script