Remove the unused date code. #539

This commit is contained in:
Korina Cordero 2021-03-02 02:37:17 +00:00
parent 643bc61bf9
commit b7c722d8e9

View file

@ -48,19 +48,9 @@ class GenerateCustomerSourceReportCommand extends Command
$month = $input->getArgument('month');
$csv_file = $input->getArgument('csv_file');
$start_date = DateTime::createFromFormat('Y-m-d', $year . '-' . $month . '-01');
$end_date = DateTime::createFromFormat('Y-m-d', $year . '-' . $month . '-01');
$start_date->setTime(0, 0);
$str_start_date = $start_date->format('Y-m-d H:i:s');
$end_date->modify('last day of this month');
$end_date->setTime(23, 59);
$str_end_date = $end_date->format('Y-m-d H:i:s');
// get all mobile user customer id hash
$resq_cust_ids = $this->getRESQCustomerIDs();
// TODO: error checking for file
$fp = fopen($csv_file, 'w');