Skip to content

Commit

Permalink
common timestamp type
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzwan committed Aug 18, 2024
1 parent 18d66ca commit e3c4544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/@common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const parsePhone = (v: string): any => {
};
const parseDate = (v: string): any => {
const value = parseDefault(v);
return typeof value === 'string' ? new Date(value).getTime() : value;
return typeof value === 'string' ? new Date(value).getTime() / 1000 : value;
};

const toArray = (value: any): string[] => {
Expand Down

0 comments on commit e3c4544

Please sign in to comment.