script for updating time