compare time against time as opposed to time against string.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>