projects
/
WP-Plugins
/
glm-member-db-leads.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99997c4
)
adjusting dates again
author
Steve Sutton
<steve@gaslightmedia.com>
Wed, 24 Aug 2016 19:50:03 +0000
(15:50 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Wed, 24 Aug 2016 19:50:03 +0000
(15:50 -0400)
make sure monthly $date is correctly created using mktime
models/admin/ajax/statCollector.php
patch
|
blob
|
history
diff --git
a/models/admin/ajax/statCollector.php
b/models/admin/ajax/statCollector.php
index
3cfb582
..
990f026
100644
(file)
--- 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;
}