5043-mock_Date #1260
|
@ -1,13 +1,2 @@
|
||||||
// try import 'vn-loopback/server/boot/date';
|
import * as date from 'vn-loopback/server/boot/date';
|
||||||
|
date.default();
|
||||||
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();
|
|
||||||
};
|
|
||||||
|
|
Loading…
Reference in New Issue