Change filename year to 4-digits #576

This commit is contained in:
Kendrick Chan 2021-06-04 00:52:26 +08:00
parent 68b9f99bdc
commit 29f1c34b2c

View file

@ -23,10 +23,10 @@ $blob_client = BlobRestProxy::createBlobService($conn_string);
$current_date = new DateTime();
$current_date->modify("-1 day");
$date = $current_date->format('m-d-y');
$date = $current_date->format('m-d-Y');
$filename = 'warrantylogs' . $date . '.csv';
//print_r($filename);
error_log($filename);
try {
// NOTE: via download blob