- added pec usage data;
- added stats for instructor manager dashboard; - fixed dispalying 0 in tables in numeric inputs;
This commit is contained in:
9
src/helpers/getTimeFromISOstring.js
Normal file
9
src/helpers/getTimeFromISOstring.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const getTimeFromISOstring = (
|
||||
value,
|
||||
options = {
|
||||
hour: 'numeric', minute: 'numeric'
|
||||
}) => {
|
||||
return value ? Intl.DateTimeFormat('it-IT', options).format(new Date(value)) : value;
|
||||
}
|
||||
|
||||
export default getTimeFromISOstring;
|
||||
Reference in New Issue
Block a user