Whenever the polling hours are extended by an order of a court of competent jurisdiction, any ballots marked after the normal polling hours by persons who were not already in line at the time the polls would have closed, notwithstanding the court order, shall be treated as provisional ballots under this section. The officers of election shall mark the green envelope for each such provisional ballot to indicate that it was cast after normal polling hours due to the court order, and when preparing the materials to deliver to the registrar or electoral board, shall separate these provisional ballots from any provisional ballots used for any other reason. The electoral board shall treat these provisional ballots as provided in § 24.2-653.01; however, the counted and uncounted provisional ballots marked after the normal polling hours shall be kept separate from all other ballots and recorded in a separate provisional ballots pollbook. The Department of Elections shall provide instructions to the electoral boards for the handling and counting of such provisional ballots pursuant to this section.
Va. Code § 24.2-653.2