josh.php Posted October 13, 2010 Share Posted October 13, 2010 I am having a problem with PHP displaying the correct date and time. It updates as it should, but is fast by 4min and is always displaying a date in 2004. I ran a basic php script to make sure the application im using itself is not wrong. go to lunenburgledger.com/time.php Anybody had any ideas on where to check? The system time on the Windows Server 2003 is correct. The only thing I can think of is that it was converted to a virtual machine on vmware esxi, but the system time stayed right. Any ideas? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/215789-php-time-and-date-reads-not-system-time/ Share on other sites More sharing options...
PFMaBiSmAd Posted October 13, 2010 Share Posted October 13, 2010 And your code that is displaying the incorrect date/time is??? Quote Link to comment https://forums.phpfreaks.com/topic/215789-php-time-and-date-reads-not-system-time/#findComment-1121816 Share on other sites More sharing options...
josh.php Posted October 13, 2010 Author Share Posted October 13, 2010 i ran the basic php date and time code, but we are running interspire website publisher which they said if the basic PHP script for date and time is wrong then it is not their actual website code. Quote Link to comment https://forums.phpfreaks.com/topic/215789-php-time-and-date-reads-not-system-time/#findComment-1121819 Share on other sites More sharing options...
litebearer Posted October 13, 2010 Share Posted October 13, 2010 He was asking to see the acutal code itself Quote Link to comment https://forums.phpfreaks.com/topic/215789-php-time-and-date-reads-not-system-time/#findComment-1121830 Share on other sites More sharing options...
josh.php Posted October 13, 2010 Author Share Posted October 13, 2010 <?php echo date("l, F d, Y h:i" ,time()); ?> Quote Link to comment https://forums.phpfreaks.com/topic/215789-php-time-and-date-reads-not-system-time/#findComment-1121831 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.