From 510cbf91ff63dae85b14194de47b1c5f15e14b76 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 5 Jan 2024 12:19:45 +0900 Subject: [PATCH] Fix current time being displayed incorrectly (e.g. 5:9 instead of 05:09) in editor autosave notification --- modules/editor/tpl/js/editor_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/tpl/js/editor_common.js b/modules/editor/tpl/js/editor_common.js index d31b39b5a..6d65fc018 100644 --- a/modules/editor/tpl/js/editor_common.js +++ b/modules/editor/tpl/js/editor_common.js @@ -82,7 +82,7 @@ function _editorAutoSave(exe, callback) { editorAutoSaveObj.content = content; // 메시지 만들어서 보여줌 - jQuery("#editor_autosaved_message_"+editor_sequence).text(oDate.getHours()+':'+oDate.getMinutes()+' '+auto_saved_msg).show(300); + jQuery("#editor_autosaved_message_"+editor_sequence).text(oDate.toTimeString().substring(0, 5) + ' ' + auto_saved_msg).show(300); // 현재 자동저장중임을 설정 editorAutoSaveObj.locked = true;