Updates time