When entering the variable to obtain the date, I am looking at the log that is left to me by two hours before the current one in Spain.
$nowtimename = gmdate('Y-m-d h:i:s \G\M\T', time());
And I need it to be the one we use right now in Spain, not having to think that it is always two hours behind, I guess adding a variable that adds two could be enough, but if there is any way to do it in gmdate
better.