Albatross Posted July 26, 2007 Share Posted July 26, 2007 I have the date being pulled in an echo statement but I'm trying to use the date_add() function somewhat unsuccessfully... Declaring the current time... <?php $time = date("h:i A"); ?> and then echoing it.. <?php echo $time date_add(INTERVAL 2 HOUR)"; ?> And as guess, it isn't working and even after searching on google, I can't seem to get this one. Any ideas would be appreciated. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted July 26, 2007 Share Posted July 26, 2007 that date_ad function is a mysql function not php... to work with time zones in php it is best to reference everything to GMT then add/subtract hours from that Quote Link to comment Share on other sites More sharing options...
Albatross Posted July 27, 2007 Author Share Posted July 27, 2007 Can you give me an example of what you mean? Quote Link to comment 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.