CBR Posted July 7, 2008 Share Posted July 7, 2008 I have the following code. $currentdate = date("Y-m-d h:I:s"); and it isnot using the correct current date, like it is cached. Can someone tell me how to make it display the current datestamp instead? It is using IIS 6 and PHP Version 5.2.5. Quote Link to comment Share on other sites More sharing options...
lemmin Posted July 7, 2008 Share Posted July 7, 2008 Check the clock? It uses the system clock so that might be different than what you expect if your server is in a different time-zone or something. Quote Link to comment Share on other sites More sharing options...
CBR Posted July 7, 2008 Author Share Posted July 7, 2008 It is the same as the computer I am on now. that is what I thought. Only thing I can think is is it cacheing somewhere. Quote Link to comment Share on other sites More sharing options...
CBR Posted July 7, 2008 Author Share Posted July 7, 2008 for instance it is using a 10:01 AM timestamp as we speak for all DB entries, it is 10:21 AM where I am. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted July 7, 2008 Share Posted July 7, 2008 "I" in the format string does not mean minutes. Check the php manual. Quote Link to comment Share on other sites More sharing options...
CBR Posted July 7, 2008 Author Share Posted July 7, 2008 My manual "Programming PHP - Oreilly"says.. I - Minutes, including a leading zero if necessary; e.g., "00" thru "59" then I referenced my other book and it says for a lower case i it is the same so I guess this book has a misprint. thanks! Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted July 7, 2008 Share Posted July 7, 2008 The php manual by php.net, the author of php, is the source for all basic php related information - http://www.php.net/docs.php Quote Link to comment Share on other sites More sharing options...
CBR Posted July 7, 2008 Author Share Posted July 7, 2008 Much appreciated. Thanks for your insight. 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.