I am trying to add 1 minute to the current time:
echo date("Y-m-d H:m:s", strtotime("+60 seconds"));
echo '<br />';
echo date("Y-m-d H:m:s");
The output is in both cases:
2012-09-02 17:09:02
2012-09-02 17:09:02
Which is obviously wrong (in both cases - the current time is in my country 1AM).
What I am doing wrong? I have saved into the datetime column the value 2012-09-02 17:09:38 and now I try to add to the current time 60 seconds and then if the difference between stored datetime and the current datetime is less than 60s, then I want to inset another row in the database...
But the problem is, the date() function displays weird output.