Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
ivnnv committed Nov 4, 2024
1 parent c7cecad commit 498e377
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/Utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ export default {
return newObject
},

getLocalizedDateTime(ts: string) {
const formattedDate = new Date(ts).toLocaleString('default', {
getLocalizedDateTime(timestamp: string) {
const formattedDate = new Date(timestamp).toLocaleString('default', {
year: 'numeric',
month: 'numeric',
day: 'numeric',
Expand All @@ -184,7 +184,7 @@ export default {
return formattedDate
},

getRelativeDateTime(ts: string) {
return moment(new Date(ts)).fromNow()
getRelativeDateTime(timestamp: string) {
return moment(new Date(timestamp)).fromNow()
},
}

0 comments on commit 498e377

Please sign in to comment.