- temp fix: form field items from JS config;

- fixed displaying times for call;
- fixed reading saved flow;
This commit is contained in:
Vitalii Kiiko
2024-10-01 16:28:46 +02:00
parent fefba1acaf
commit b755c6e383
10 changed files with 62 additions and 13 deletions

View File

@@ -0,0 +1,9 @@
const getTimeParsedFromString = ( t ) => {
let d = new Date();
const time = t.match( /(\d+)(?::(\d\d))?\s*(p?)/ );
d.setHours( parseInt( time[1]) + (time[3] ? 12 : 0) );
d.setMinutes( parseInt( time[2]) || 0 );
return d;
}
export default getTimeParsedFromString;