denoteone Posted May 3, 2010 Share Posted May 3, 2010 I am getting the date 1969.12.31 when I $added = date("Y-m-d"); echo $added; The script is running on a windows machine with xampp and it is not hooked up the internet. Quote Link to comment https://forums.phpfreaks.com/topic/200589-date/ Share on other sites More sharing options...
Muddy_Funster Posted May 3, 2010 Share Posted May 3, 2010 and your point is caller? Quote Link to comment https://forums.phpfreaks.com/topic/200589-date/#findComment-1052647 Share on other sites More sharing options...
Mchl Posted May 3, 2010 Share Posted May 3, 2010 That is strange. I get today's date. Is that entire script? Quote Link to comment https://forums.phpfreaks.com/topic/200589-date/#findComment-1052655 Share on other sites More sharing options...
teamatomic Posted May 3, 2010 Share Posted May 3, 2010 Thats the start of unix time, well actually t-1 as it is seconds passed since 1-1-1970. So you are fudging it up somewhere. You say its WAMP, what does the date in your taskbar say and what does date("U") give you? HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/200589-date/#findComment-1052670 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.