From cfde7abbdf8a2eb57071428d5caf58efd32bbc95 Mon Sep 17 00:00:00 2001 From: maliming Date: Wed, 26 Feb 2025 16:10:03 +0800 Subject: [PATCH] Rename normalization functions in abp.js for clarity and consistency --- npm/packs/core/src/abp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/npm/packs/core/src/abp.js b/npm/packs/core/src/abp.js index 4b245af679..05c9f3bbe5 100644 --- a/npm/packs/core/src/abp.js +++ b/npm/packs/core/src/abp.js @@ -752,8 +752,8 @@ var abp = abp || {}; return abp.clock.kind === 'Utc'; }; - // Normalize Date object or date string that will be sent to server - abp.clock.normalize = function (date) { + // Normalize Date object or date string to standard string format that will be sent to server + abp.clock.normalizeToString = function (date) { if (!date) { return date; } @@ -787,8 +787,8 @@ var abp = abp || {}; padMilliseconds(dateObj.getMilliseconds()); }; - // Normalize date string getting from server to Local - abp.clock.normalizeToLocaleDate = function (dateString) { + // Normalize date string to locale date string that will be displayed to user + abp.clock.normalizeToLocaleString = function (dateString) { if (!dateString) { return dateString; }