salix/front/core/services/date.js

17 lines
318 B
JavaScript
Raw Normal View History

2023-01-17 14:36:39 +00:00
Date.vnUTC = () => {
const env = process.env.NODE_ENV;
if (!env || env === 'development')
return new Date(Date.UTC(2022, 5, 15, 11));
return new Date(Date.UTC());
};
2023-01-16 14:18:00 +00:00
Date.vnNew = () => {
return new Date(Date.vnUTC());
};
Date.vnNow = () => {
return new Date(Date.vnUTC()).getTime();
};