From eb59efbb85d19b42f3b4a8943f61b32cc70db636 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 24 Jan 2023 15:12:16 +0100 Subject: [PATCH] refactor(front): use vn-loopback/boot/date --- front/core/services/date.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/front/core/services/date.js b/front/core/services/date.js index 3b7193d7b..120297951 100644 --- a/front/core/services/date.js +++ b/front/core/services/date.js @@ -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();