Update Areas/OTcalculate/Views/Overtime/OtRecords.cshtml
This commit is contained in:
parent
27a6d640a5
commit
ea623046b7
@ -333,8 +333,13 @@
|
||||
},
|
||||
|
||||
formatDate(d) {
|
||||
return new Date(d).toLocaleDateString();
|
||||
const date = new Date(d);
|
||||
const day = date.getDate().toString().padStart(2, '0');
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
||||
const year = date.getFullYear();
|
||||
return `${day}/${month}/${year}`;
|
||||
},
|
||||
|
||||
formatTime(t) {
|
||||
if (!t) return "-";
|
||||
const [hours, minutes] = t.split(':').map(Number);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user