Merge pull request #2 from boryn/patch-1

Extension '.xlsx' outside of gmdate()
This commit is contained in:
Sergey Shuchkin 2020-07-16 13:38:30 +06:00 committed by GitHub
commit 982de475c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class SimpleXLSXGen {
return true;
}
public function download() {
return $this->downloadAs( gmdate('YmdHi.xlsx') );
return $this->downloadAs( gmdate('YmdHi') . '.xlsx' );
}
public function downloadAs( $filename ) {
$fh = fopen('php://memory','wb');
@ -378,4 +378,4 @@ class SimpleXLSXGen {
return (float) $excelDate + $excelTime;
}
}
}