projects
/
WP-Plugins
/
glm-member-db-travel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9b8c11
)
Need to use mktime correctly
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 16 Aug 2018 15:35:43 +0000
(11:35 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 16 Aug 2018 15:35:43 +0000
(11:35 -0400)
need day
models/admin/travel/reports.php
patch
|
blob
|
history
diff --git
a/models/admin/travel/reports.php
b/models/admin/travel/reports.php
index
bdfa353
..
bd03677
100644
(file)
--- a/
models/admin/travel/reports.php
+++ b/
models/admin/travel/reports.php
@@
-147,7
+147,7
@@
class GlmMembersAdmin_travel_reports //extends GlmDataTravelLeads
// Add Month name to $months
if ( isset( $months ) && !empty( $months ) ) {
foreach ( $months as $key => $row ) {
- $months[$key]['full_month'] = date( 'F', mktime( 0, 0, 0, $row['month'], $row['year']) );
+ $months[$key]['full_month'] = date( 'F', mktime( 0, 0, 0, $row['month'],
1,
$row['year']) );
$months[$key]['option_value'] = $row['month'] . '|' .$row['year'];
}
}