Skip to content

Commit

Permalink
Make curHour is interpreted
Browse files Browse the repository at this point in the history
  • Loading branch information
le717 authored Nov 30, 2024
1 parent 7cf6533 commit 2720635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/notepad.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
}

// Construct the formatted string
var dateString = `{$curHour}:${curMin} ${timeOfDay} ${date.toLocaleDateString()}`;
var dateString = `${curHour}:${curMin} ${timeOfDay} ${date.toLocaleDateString()}`;

// Update the document with the date string
var front = self.editor.value.substring(0, cursorPos),
Expand Down

0 comments on commit 2720635

Please sign in to comment.