From 62485e0888ca10f37ebf2aa2ad945559de50dcfd Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Mon, 6 Nov 2017 17:41:05 +0100 Subject: [PATCH] fix date format --- modules/ant_wp/GenerateWp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ant_wp/GenerateWp.php b/modules/ant_wp/GenerateWp.php index ae9f3491..8d69afd5 100644 --- a/modules/ant_wp/GenerateWp.php +++ b/modules/ant_wp/GenerateWp.php @@ -280,7 +280,7 @@ class GenerateWp ->setCellValue('AO'.$i, '=AA'.$i.'*AF'.$i) ->setCellValue('AP'.$i, isset($row['nc8'])?$row['nc8']:"") ->setCellValue('AQ'.$i, isset($row['id_country'])?$row['id_country']:"") - ->setCellValue('AR'.$i, $sales[$id_categories[0]]); + ->setCellValue('AR'.$i, date('d/m/Y',strtotime($sales[$id_categories[0]])); $this->objPHPExcel->setActiveSheetIndex(0)->getStyle('B'.$i.':AR'.$i.'')->applyFromArray($borders_style); $this->objPHPExcel->setActiveSheetIndex(1)->setCellValue('B'.$i, (String)$row['ean'])