US President Donald Trump is set to sit down for a formal meeting with Rodrigo Duterte today, Nov. 13,聽as ties warm a year after the Philippine leader cursed out Barack Obama and publicly pivoted toward China.

Trump and Duterte shook hands Monday morning before a ceremony to open two days of meetings in Manila hosted by the Association of Southeast Asian Nations. At a gala dinner the night before, Duterte sang a Filipino love song 鈥渦pon the orders of the commander-in-chief of the United States,鈥 according to a video posted on Twitter by a Philippine government official.

The bonhomie between the leaders stands in contrast to a year ago, when Duterte blasted Obama for criticizing his war on drugs that has left thousands dead. He subsequently pivoted toward China, de-escalating tensions with Beijing over their competing South China Sea claims and winning $24 billion worth of Chinese loans and investment into the Philippines.

Ties with the US, a longstanding Philippine security ally, improved after Trump took office. After an April phone call between Trump and Duterte, the White House said the Philippines is 鈥渇ighting very hard to rid its country of drugs.鈥 The tough-talking Duterte, famed for his profanity-riddled outbursts, has spoken warmly of Trump, saying this month that their mouths move 鈥渋n the same cadence.鈥

US drones, surveillance and intelligence eventually helped Philippine forces clear Marawi City in the nation鈥檚 south from Islamic State-linked terrorists. And on Sunday, Trump offered to help resolve territorial disputes in the South China Sea involving the Philippines, Vietnam, China and other claimants.

鈥淚 am a very good mediator and a very good arbitrator,鈥 Trump said Sunday in Hanoi ahead of a meeting with Vietnamese President Tran Dai Quang. 鈥淚f I can be of help in any way, let me know.鈥

Both the Philippines and Vietnam have recently seen China disrupt oil-and-gas exploration in disputed areas of the South China Sea. While the U.S. doesn鈥檛 take a position on territorial disputes, it has criticized China for land reclamation and other moves to assert control over areas also claimed in part by Southeast Asian countries.

It was unclear if Trump鈥檚 offhand remark signaled a more proactive U.S. role in finding a solution to one of Asia鈥檚 biggest flashpoints. Trump has primarily focused his attention on North Korea鈥檚 nuclear program, a shift from the Obama administration鈥檚 more aggressive stance against China鈥檚 activities in the South China Sea.

鈥楪ood Mediator鈥
Quang didn鈥檛 answer directly when asked about Trump鈥檚 offer at a press briefing, saying only that Vietnam wanted to settle disputes through 鈥減eaceful negotiations鈥 in accordance with international law. The Philippines cautiously welcomed Trump鈥檚 offer, with officials saying that any effort would need to be coordinated among other countries in the region.

It鈥檚 a 鈥渧ery kind and generous offer because he is a good mediator,鈥 Foreign Secretary Alan Peter Cayetano told reporters in Manila. 鈥淗e is the master of the art of the deal.鈥

Duterte warned Sunday that a war over the waterway would devastate the region. He said that Chinese President Xi Jinping told him on Saturday that he also didn鈥檛 want to 鈥渨aste the lives of my countrymen for a useless war that cannot be won by anyone.鈥

鈥淭he South China Sea is better left untouched,鈥 Duterte said. 鈥淣obody can afford to go to war.鈥

China opposes U.S. involvement in resolving the disputes, preferring to settle them through one-on-one talks with other nations. Relations between China and the Philippines have opened a new chapter after Duterte鈥檚 visit in October, China鈥檚 official Xinhua News Agency聽quoted Xi as saying after the meeting.

The 10-nation Asean is set to announce Monday the start of negotiations with China on a code of conduct for the South China Sea, the Philippines said in a statement. The talks have made little progress since the nations agreed formally to work toward a code in 2002. 鈥 Bloomberg