Skip to content

Commit

Permalink
Add isodate as available placeholder for auto-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jun 7, 2024
1 parent 6075dbb commit d5208ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ onBroadcast(msg => {
const url = new URL(options.docURL);
comment = '! ' +
this.hiddenSettings.autoCommentFilterTemplate
.replace('{{isodate}}', d.toISOString().split('T')[0])
.replace('{{date}}', d.toLocaleDateString(undefined, { dateStyle: 'medium' }))
.replace('{{time}}', d.toLocaleTimeString())
.replace('{{hostname}}', url.hostname)
Expand Down

0 comments on commit d5208ee

Please sign in to comment.