Add date comparisons and change ::timestamp to local time.