Need to use mktime correctly
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Aug 2018 15:35:43 +0000 (11:35 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Aug 2018 15:35:43 +0000 (11:35 -0400)
need day

models/admin/travel/reports.php

index bdfa353..bd03677 100644 (file)
@@ -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'];
             }
         }