def update_activity_first_published_msec(activity_type, activity_id, first_published_msec):
 activity_rights = _get_activity_rights(activity_type, activity_id)
 commit_cmds = [{'cmd': CMD_UPDATE_FIRST_PUBLISHED_MSEC, 'old_first_published_msec': activity_rights.first_published_msec, 'new_first_published_msec': first_published_msec}]
 activity_rights.first_published_msec = first_published_msec
 _save_activity_rights(feconf.SYSTEM_COMMITTER_ID, activity_rights, activity_type, 'set first published time in msec', commit_cmds)

def update_activity_first_published_msec ( activity_type , activity_id , first_published_msec ) : activity_rights = _get_activity_rights ( activity_type , activity_id ) commit_cmds = [ { 'cmd' : CMD_UPDATE_FIRST_PUBLISHED_MSEC , 'old_first_published_msec' : activity_rights . first_published_msec , 'new_first_published_msec' : first_published_msec } ] activity_rights . first_published_msec = first_published_msec _save_activity_rights ( feconf . SYSTEM_COMMITTER_ID , activity_rights , activity_type , 'set first published time in msec' , commit_cmds )
updates the first_published_msec field for an activity .