mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 07:22:17 +00:00
timezone save date format function in student detail view via getUTCDate() instead of getDate()
This commit is contained in:
@@ -169,9 +169,9 @@ export const AbgabeStudentDetail = {
|
||||
const date = new Date(dateParam)
|
||||
const padZero = (num) => String(num).padStart(2, '0');
|
||||
|
||||
const month = padZero(date.getMonth() + 1);
|
||||
const day = padZero(date.getDate());
|
||||
const year = date.getFullYear();
|
||||
const month = padZero(date.getUTCMonth() + 1);
|
||||
const day = padZero(date.getUTCDate());
|
||||
const year = date.getUTCFullYear();
|
||||
|
||||
return `${day}.${month}.${year}`
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user