5043-mock_Date #1260

Merged
alexm merged 21 commits from 5043-mock_Date into dev 2023-02-03 10:57:51 +00:00
1 changed files with 2 additions and 13 deletions
Showing only changes of commit eb59efbb85 - Show all commits

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();