echo date('Y-m-d H:m:s', strtotime('15 minutes ago')) . "<br/>";
echo date('Y-m-d H:m:s', time()-900) . "<br/>";
echo date('Y-m-d H:m:s', time());
I am running WAMPP on Windows 7 and all 3 calls returning same time.
'H:m:s' should be 'H:i:s'
^ ^
Spot the difference
The error in your code:
'Y-m-d H:m:s' should be 'Y-m-d H:i:s'
m is month i is minute