From 85f382da195c0bfe4bc53b9c7c57d83d4647bde6 Mon Sep 17 00:00:00 2001 From: maliming <6908465+maliming@users.noreply.github.com> Date: Fri, 10 Jul 2020 13:08:14 +0800 Subject: [PATCH] fix toLocal function problem. --- npm/packs/core/src/abp.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/npm/packs/core/src/abp.js b/npm/packs/core/src/abp.js index f8cdf1ea2c..20bd92147a 100644 --- a/npm/packs/core/src/abp.js +++ b/npm/packs/core/src/abp.js @@ -706,13 +706,13 @@ var abp = abp || {}; var toLocal = function (date) { return new Date( - date.getUTCFullYear(), - date.getUTCMonth(), - date.getUTCDate(), - date.getUTCHours(), - date.getUTCMinutes(), - date.getUTCSeconds(), - date.getUTCMilliseconds() + date.getFullYear(), + date.getMonth(), + date.getDate(), + date.getHours(), + date.getMinutes(), + date.getSeconds(), + date.getMilliseconds() ); };