diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-07 12:07:23 +0300 |
|---|---|---|
| committer | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-07 12:07:23 +0300 |
| commit | 0a207b8a2c0629b7f1996025a40a10fbe58d05d0 (patch) | |
| tree | 17d8a98faecccbda02b98ede48adf020d5e8d2f9 /web/assets/js/util/date-util.js | |
| parent | 26bf693dbdc2db0222ee37615e353f7ca1fdd3c1 (diff) | |
refactor: merging all util functions into classes
Diffstat (limited to 'web/assets/js/util/date-util.js')
| -rw-r--r-- | web/assets/js/util/date-util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/assets/js/util/date-util.js b/web/assets/js/util/date-util.js index 50efd6fe..9b4b0f81 100644 --- a/web/assets/js/util/date-util.js +++ b/web/assets/js/util/date-util.js @@ -108,14 +108,14 @@ Date.prototype.setMaxTime = function () { * Formatting date */ Date.prototype.formatDate = function () { - return this.getFullYear() + "-" + addZero(this.getMonth() + 1) + "-" + addZero(this.getDate()); + return this.getFullYear() + "-" + NumberFormatter.addZero(this.getMonth() + 1) + "-" + NumberFormatter.addZero(this.getDate()); }; /** * Format time */ Date.prototype.formatTime = function () { - return addZero(this.getHours()) + ":" + addZero(this.getMinutes()) + ":" + addZero(this.getSeconds()); + return NumberFormatter.addZero(this.getHours()) + ":" + NumberFormatter.addZero(this.getMinutes()) + ":" + NumberFormatter.addZero(this.getSeconds()); }; /** |
