Fixed typo in datetime check

Signed-off-by: Chris Bunney <chris.bunney@dsp.io>