update medium time