Beijing will require travelers to get a COVID-19 test within 72 hours of arrival in the Chinese capital, state media announced on Sunday, a day after the city reported its first omicron case and as it readies to stage the Winter Olympics next month.

On Saturday, the city reported the first local infection of the highly transmissible omicron variant, involving a person who had visited multiple malls and restaurants in the previous 14 days. The person had not left the city since the start of this year.

The new rule, effective from Jan. 22 to end-March, is aimed to help with early detection of omicron, which is surging globally, and the control of epidemic risks, Beijing Daily, a government newspaper, said on its official social media account.