mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
fixed est time display
This commit is contained in:
parent
ecda809492
commit
acc7cf6a22
5 changed files with 88 additions and 12 deletions
|
@ -1,5 +1,6 @@
|
|||
export const toHours = (info) => {
|
||||
const hrs = parseInt(Number(info));
|
||||
const min = Math.round((Number(info)-hrs) * 60);
|
||||
return hrs+':'+min;
|
||||
}
|
||||
const hrs = parseInt(Number(info), 10);
|
||||
const min = Math.round((Number(info) - hrs) * 60);
|
||||
const lmin = min < 10 ? '0' + min : min;
|
||||
return `${hrs}:${lmin}`;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue