liam_d The original NP Emo KidEstablished Member ★ 20 ★ Impact 25 Jul 16, 2008 1K views 3 replies #1 Basically i have this: Code: $time = time(); echo $time . '<br />'; echo date("d-m-Y H:i:s",$time); Obviously it outputs server time, i wish to change the locale to UK time?
Basically i have this: Code: $time = time(); echo $time . '<br />'; echo date("d-m-Y H:i:s",$time); Obviously it outputs server time, i wish to change the locale to UK time?
netzilla VIP Member VIP ★ 20 ★ Impact 54 Jul 16, 2008 #2 Add or subtract the number of seconds differing between your server's time zone and your preferred time zone.
Add or subtract the number of seconds differing between your server's time zone and your preferred time zone.
liam_d The original NP Emo KidEstablished Member ★ 20 ★ Impact 25 Jul 16, 2008 #3 That is the long way around, i would prefer to use the setlocale options but i cannot get it to work.
That is the long way around, i would prefer to use the setlocale options but i cannot get it to work.
Daniel Danltn.comVIP Member VIP ★ 15 ★ Impact 133 Jul 16, 2008 #4 www.php.net/gmdate http://uk3.php.net/setlocale