Android Posted March 16, 2006 Posted March 16, 2006 >$locale = setlocale(LC_ALL,'gv_GB'); echo strftime("%Z - %H:%M:%S"); output: EST - 11:32:17 The above code doesn't seem to affect the time, i've tried various settings instead of gv_GB but so far none seem to work, however this one seems to be recognised the time just remains in EST Quote
TCH-Andy Posted March 16, 2006 Posted March 16, 2006 Try GMT. >putenv("TZ=GMT"); echo date("F d, Y @ g:i A T"); works for me in a quick test. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.