From fe7d6de4624a6ad2f850e70551de34bcb0b4ac5d Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 17 Jan 2022 04:45:58 +0100 Subject: [PATCH] The format method access a date object as well. --- assets/js/utils/date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/utils/date.js b/assets/js/utils/date.js index 6c571b43..7feb9e91 100644 --- a/assets/js/utils/date.js +++ b/assets/js/utils/date.js @@ -18,7 +18,7 @@ window.App.Utils.Date = (function () { /** * Format a YYYY-MM-DD HH:mm:ss date string. * - * @param {String} dateValue The date string to be formatted. + * @param {String|Date} dateValue The date string to be formatted. * @param {String} [dateFormatType] The date format type value ("DMY", "MDY" or "YMD"). * @param {String} [timeFormatType] The time format type value ("regular", "military"). * @param {Boolean} [withHours] Whether to add hours to the returned string.