refactor(front): use vn-loopback/boot/date
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-01-24 15:12:16 +01:00
parent 1f52d04d4e
commit eb59efbb85
1 changed files with 2 additions and 13 deletions

View File

@ -1,13 +1,2 @@
// try import 'vn-loopback/server/boot/date';
Date.vnUTC = () => {
return new Date(Date.UTC(2022, 5, 15, 11));
};
Date.vnNew = () => {
return new Date(Date.UTC(2022, 5, 15, 11));
};
Date.vnNow = () => {
return new Date(Date.UTC(2022, 5, 15, 11)).getTime();
};
import * as date from 'vn-loopback/server/boot/date';
date.default();