Compare Dates - Times

As you are using seconds your comparison will only be true for one second. If your sketch is doing other things it could miss. However to change to one minute resolution just drop seconds from your strings. Then they will be equal within one minute. Drop the minutes for one hour resolution.

If you really need one second resolution then Unix time might be a better solution.