I'm seeing a strange issue using the "date" function and "strtotime" in PHP.
echo date('m/d/Y h:i:s a', time())."<br>"; //returns 04/29/2021 12:26:30 pm
echo date('M Y', strtotime('-5 months'))."<br>"; //returns Nov 2020
echo date('M Y', strtotime('-4 months'))."<br>"; //returns Dec 2020
echo date('M Y', strtotime('-3 months'))."<br>"; //returns Jan 2021
echo date('M Y', strtotime('-2 months'))."<br>"; //returns Mar 2021
echo date('M Y', strtotime('-1 months'))."<br>"; //returns Mar 2021
echo date('M Y')."<br>"; //returns Apr 2021
My server time is correct, as indicated by the first line, but why does strtotime('-2 months') and strtotime('-1 months') return the same value (Mar 2021) twice?
Thanks in advance