Skip to content

Commit

Permalink
chore: removed convertUTCToLocalTime() util
Browse files Browse the repository at this point in the history
  • Loading branch information
alashchev17 committed Jan 27, 2025
1 parent 0c90d6f commit fc20af0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/utils/formatDateToHumanReadable.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
export function convertUTCToLocalTime(date: string): Date {
const utcDate = new Date(date);
const timezoneOffset = utcDate.getTimezoneOffset() * 60000; // Convert to milliseconds
const localDate = new Date(utcDate.getTime() - timezoneOffset);
return localDate;
}

export function formatDateToHumanReadable(
date: string,
timeZone: string,
Expand Down

0 comments on commit fc20af0

Please sign in to comment.