fixing a bug with 30 minute timestamp check