Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidragon123 committed Jan 19, 2025
1 parent ba64d43 commit ef02a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/src/Utility/DateFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function formatCreatedAt(createdAt) {
const timezoneOffset = createdDate.getTimezoneOffset();
createdDate.setMinutes(createdDate.getMinutes() - timezoneOffset);

const diffTime = Math.Abs(now - createdDate);
const diffTime = Math.abs(now - createdDate);
const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));

const rtf = new Intl.RelativeTimeFormat("en", { numeric: "auto" });
Expand Down

0 comments on commit ef02a5f

Please sign in to comment.