diff --git a/assets/assets.qtpl.go b/assets/assets.qtpl.go index 484496c..653b028 100644 --- a/assets/assets.qtpl.go +++ b/assets/assets.qtpl.go @@ -529,6 +529,11 @@ function insertDate() { textInserter(date)() } +function insertTimeUTC() { + let time = new Date().toISOString().substring(11, 19) + " UTC" + textInserter(time)() +} + function insertUserlink() { const userlink = document.querySelector('.header-links__entry_user a') const userHypha = userlink.getAttribute('href').substring(7) // no /hypha/ diff --git a/assets/toolbar.js b/assets/toolbar.js index 50062e5..36eae4f 100644 --- a/assets/toolbar.js +++ b/assets/toolbar.js @@ -63,6 +63,11 @@ function insertDate() { textInserter(date)() } +function insertTimeUTC() { + let time = new Date().toISOString().substring(11, 19) + " UTC" + textInserter(time)() +} + function insertUserlink() { const userlink = document.querySelector('.header-links__entry_user a') const userHypha = userlink.getAttribute('href').substring(7) // no /hypha/ diff --git a/views/mutators.qtpl b/views/mutators.qtpl index 20cdbf4..36a7fed 100644 --- a/views/mutators.qtpl +++ b/views/mutators.qtpl @@ -46,6 +46,7 @@ display string }{ {"date", "insertDate()", "Insert current date"}, + {"time", "insertTimeUTC()", "Insert current time"}, } %} `) -//line views/mutators.qtpl:55 +//line views/mutators.qtpl:56 } -//line views/mutators.qtpl:55 +//line views/mutators.qtpl:56 qw422016.N().S(` `) -//line views/mutators.qtpl:56 +//line views/mutators.qtpl:57 if u.Group != "anon" { -//line views/mutators.qtpl:56 +//line views/mutators.qtpl:57 qw422016.N().S(`