Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
fix: Refine getShortTimestampFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
lightwalker-eth committed Apr 30, 2024
1 parent 9b69afd commit 637a517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const relativeTimestamp = (
* @returns string - The date formatted as a short string.
*/
export const getShortTimestampFormat = (timestamp: Timestamp): string => {
return format(bigIntToNumber(timestamp.time), shortDateFormat);
return format(fromTimestampToDate(timestamp), shortDateFormat);
};

/**
Expand Down

0 comments on commit 637a517

Please sign in to comment.