refactor(tender-details): integrate unixToDate for date formatting and enhance layout consistency
- Replaced msToDate with unixToDate for application, publication, submission, and tender deadlines to ensure accurate date representation. - Improved ShowcaseSection layout by adjusting class names for better visual consistency across various sections. - Enhanced error message formatting for improved readability.
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ export const unixToDate = ({
|
||||
unix: number;
|
||||
hasTime?: boolean;
|
||||
}) => {
|
||||
return moment.unix(unix).format(`YYYY/MM/DD - ${hasTime ? "HH:MM" : ""}`);
|
||||
return unix === 0 ? "-" : moment.unix(unix).format(`YYYY/MM/DD - ${hasTime ? "HH:MM" : ""}`);
|
||||
};
|
||||
export const msToDate = (ms: number) => {
|
||||
return moment.default(ms).format("YYYY/MM/DD");
|
||||
|
||||
Reference in New Issue
Block a user