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. Link to comment https://forums.phpfreaks.com/topic/113596-date-not-displaying-the-currect-current-date-using-iis-6/ 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. Link to comment https://forums.phpfreaks.com/topic/113596-date-not-displaying-the-currect-current-date-using-iis-6/#findComment-583661 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. Link to comment https://forums.phpfreaks.com/topic/113596-date-not-displaying-the-currect-current-date-using-iis-6/#findComment-583662 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. Link to comment https://forums.phpfreaks.com/topic/113596-date-not-displaying-the-currect-current-date-using-iis-6/#findComment-583663 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. Link to comment https://forums.phpfreaks.com/topic/113596-date-not-displaying-the-currect-current-date-using-iis-6/#findComment-583666 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! Link to comment https://forums.phpfreaks.com/topic/113596-date-not-displaying-the-currect-current-date-using-iis-6/#findComment-583684 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 Link to comment https://forums.phpfreaks.com/topic/113596-date-not-displaying-the-currect-current-date-using-iis-6/#findComment-583692 Share on other sites More sharing options...
CBR Posted July 7, 2008 Author Share Posted July 7, 2008 Much appreciated. Thanks for your insight. Link to comment https://forums.phpfreaks.com/topic/113596-date-not-displaying-the-currect-current-date-using-iis-6/#findComment-583741 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.