Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YongZL committed Oct 23, 2024
1 parent 11b0eb7 commit 8289f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { toast } from 'sonner';

export const timestampToDateTime = (timestamp: number) => {
const date = new Date((timestamp * 1000) / 1000);
const date = new Date(timestamp * 1000);

const year = date.getFullYear();
const month = ('0' + (date.getMonth() + 1)).slice(-2);
Expand Down

0 comments on commit 8289f01

Please sign in to comment.