From 19a158306b44e9faac2166b2ac3df894d300a5a2 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 24 Aug 2016 15:50:03 -0400 Subject: [PATCH] adjusting dates again make sure monthly $date is correctly created using mktime --- models/admin/ajax/statCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/admin/ajax/statCollector.php b/models/admin/ajax/statCollector.php index 3cfb582..990f026 100644 --- a/models/admin/ajax/statCollector.php +++ b/models/admin/ajax/statCollector.php @@ -217,7 +217,7 @@ class GlmMembersAdmin_ajax_statCollector if ( $results ) { foreach ( $results as $stat ) { if ( preg_match( '%(\d{4})(\d{2})%', $stat['monthly'], $matches ) ) { - $date = date( "Y-m-d", strtotime( $matches[1]."-".$matches[2]."-01" ) ); + $date = date( "Y-m-d", mktime( 0, 0, 0, $matches[2], 1, $matches[1] ) ); } else { return false; } -- 2.17.1