mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-08-18 05:44:54 +02:00
Merge pull request #40 from jrue3084/master
removed colon due to nextcloud error
This commit is contained in:
commit
6db578e0ff
@ -139,8 +139,8 @@ function getFormatedName(is_manual, ha_version){
|
|||||||
template = template.replace('{type}', is_manual ? 'Manual' : 'Auto');
|
template = template.replace('{type}', is_manual ? 'Manual' : 'Auto');
|
||||||
template = template.replace('{ha_version}', ha_version);
|
template = template.replace('{ha_version}', ha_version);
|
||||||
let mmt = moment()
|
let mmt = moment()
|
||||||
template = template.replace('{hour_12}', mmt.format('hh:mmA'));
|
template = template.replace('{hour_12}', mmt.format('hhmmA'));
|
||||||
template = template.replace('{hour}', mmt.format('HH:mm'));
|
template = template.replace('{hour}', mmt.format('HHmm'));
|
||||||
template = template.replace('{date}', mmt.format('YYYY-MM-DD'));
|
template = template.replace('{date}', mmt.format('YYYY-MM-DD'));
|
||||||
return template
|
return template
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user