updating time ranges