US Navy Commissioned in the US Navy as USS
Gayety (AM-239) in 1945, she was assigned in the Pacific theatre of operations, specifically around the Japanese home islands providing minefield sweeping and anti-submarine warfare patrols in the Ryukyus and off Okinawa. 27 May 1945 She suffered a near-miss from a 500-pound bomb and was damaged with several casualties who were buried at Zamami shima, Okinawa, although she was quickly put back into fighting shape. After the war she was decommissioned in June 1946 and placed in the
Atlantic Reserve Fleet.
Gayety was recommissioned on 11 May 1951 as a training ship, and was again decommissioned on 1 March 1954, and re-entered
Atlantic Reserve Fleet. As part of the reserves, she was reclassified as MSF-239 on 7 February 1955.
Philippine Navy She was formally acquired by the Philippine Navy on 5 April 1976, and was commissioned into the
Philippine Navy on 7 February 1977 and was renamed '
RPS Magat Salamat
(PS-20). She was renamed to BRP Magat Salamat
(PS-20)' in June 1980 using a new localized prefix. In the 1990-1993 overhaul and refit program for the 6 ships of
Malvar-class patrol corvettes, PS-20 Magat Salamat wasn't included; and the following year 1994, along with her sistership
PS-29 Negros Occidental, both of them was planned to be discarded instead by 1995. She was assigned with the Patrol Force of the Philippine Fleet, under the jurisdiction of Naval Forces Eastern Mindanao. In 2 to 10 July 2012,
Magat Salamat was one of the participating ships in the
Cooperation Afloat Readiness and Training (CARAT) 2012 - Philippines exercises. In 10 December 2021,
Magat Salamat was decommissioned alongside her sister ship
Miguel Malvar, in a ceremony at
Naval Base Heracleo Alano. In 28 December 2021, just 15 days after her formal retirement, the Philippine News Agency reported that she will be used "as a temporary command post for the duration of the relief operations in the
Dinagat Islands which were severely devastated by
Typhoon Odette". ==Technical details==