Compare commits

..

No commits in common. "68907be99f46103c47eef551fcff34d030df83f5" and "28534d4774bebf437f9ca44518518ce250898ca7" have entirely different histories.

1 changed files with 7 additions and 7 deletions

View File

@ -1,11 +1,11 @@
export const formatDate = (dateString: string): string => { export const formatDate = (dateString: string): string => {
const date = new Date(dateString); const date = new Date(dateString);
const hours = String(date.getHours() + 2).padStart(2, "0"); const hours = String(date.getHours()).padStart(2, '0');
const minutes = String(date.getMinutes()).padStart(2, "0"); const minutes = String(date.getMinutes()).padStart(2, '0');
const month = String(date.getMonth() + 1).padStart(2, "0"); // Months are zero-based const month = String(date.getMonth() + 1).padStart(2, '0'); // Months are zero-based
const day = String(date.getDate()).padStart(2, "0"); const day = String(date.getDate()).padStart(2, '0');
const year = date.getFullYear(); const year = date.getFullYear();
return `${hours}:${minutes} ${day}.${month}.${year}`; return `${hours}:${minutes} ${day}.${month}.${year}`;
}; };