Brian W Posted September 18, 2008 Share Posted September 18, 2008 I sadly am not using PHP >= 5.0... some version < is supplied by my server (this will be changing soon). Do to this, I can't seem to use the time zone settings. The time zone is simply 1 hour ahead, is there any way i can get "g" to be -1 hour? date("F j, Y - g:ia") If it doesn't work out to be pretty simple, I'll just hold off till I get my new testing server rolling. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/124819-solved-date-and-time/ Share on other sites More sharing options...
F1Fan Posted September 18, 2008 Share Posted September 18, 2008 date("F j, Y - g:ia",strtotime("-1 hour")) Quote Link to comment https://forums.phpfreaks.com/topic/124819-solved-date-and-time/#findComment-644803 Share on other sites More sharing options...
Brian W Posted September 18, 2008 Author Share Posted September 18, 2008 very much thanks... that did the trick. Quote Link to comment https://forums.phpfreaks.com/topic/124819-solved-date-and-time/#findComment-644812 Share on other sites More sharing options...
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.