Added alert() to ensure timestamps are compared correctly