Fixed a bug where no insert time would throw an error, and simplified the relative date calculation for the at-a-glance PQ status monitor.