답변 3개
채택된 답변
+20 포인트
문서를 좀 더 찾아보니 strtotime 의 -1 month 는 이전달의 일수를 계산하는 것 같습니다.
즉 9월은 30일까지였으니 10월 31일에서 30일만 빼서 10월 1일로 계산합니다.
https://blog.munilive.com/posts/In-strtotime-1-months-or-1-month-ago-is-not-30-days-old.html
https://bakssse.tistory.com/entry/PHP-strtotime-%EC%9D%B4%EC%A0%84-%EB%8B%AC-%EA%B5%AC%ED%95%A0%EB%95%8C-%EC%A3%BC%EC%9D%98-%ED%95%A0-%EC%A0%90
저도 이제야 알았네요 ㅋㅋ strtotime 자체를 잘 안써서 ㅋ
답변을 작성하려면 로그인이 필요합니다.