Merge pull request #40 from jrue3084/master

removed colon due to nextcloud error
This commit is contained in:
Sébastien Clément 2020-12-30 11:50:48 +01:00 committed by GitHub
commit 6db578e0ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,8 +139,8 @@ function getFormatedName(is_manual, ha_version){
template = template.replace('{type}', is_manual ? 'Manual' : 'Auto');
template = template.replace('{ha_version}', ha_version);
let mmt = moment()
template = template.replace('{hour_12}', mmt.format('hh:mmA'));
template = template.replace('{hour}', mmt.format('HH:mm'));
template = template.replace('{hour_12}', mmt.format('hhmmA'));
template = template.replace('{hour}', mmt.format('HHmm'));
template = template.replace('{date}', mmt.format('YYYY-MM-DD'));
return template
}