feat: implement product approval workflow updates

This commit is contained in:
2026-09-09 11:32:37 +05:30
parent abc966d507
commit 227949f8b2
31 changed files with 1472 additions and 277 deletions
+4
View File
@@ -59,6 +59,10 @@ export class DateFormatPipe implements PipeTransform, OnDestroy {
if (Array.isArray(value)) {
// Backend sometimes returns [yyyy, MM, dd]
dateVal = moment(value.join('-'), 'YYYY-MM-DD');
} else if (typeof value === 'number' && value < 1e12) {
// Unix timestamp in seconds (e.g. /makercheckers madeOnDate).
// moment(seconds) would treat it as milliseconds → 1970; use moment.unix() instead.
dateVal = moment.unix(value);
} else {
dateVal = moment(value);
}