1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

optionally display the current offset as short name after the time via the general plugin settings

This commit is contained in:
Daniel Waxweiler
2021-05-23 15:37:29 +02:00
parent 0b3c998e56
commit 7795ccc36a
11 changed files with 83 additions and 4 deletions

View File

@ -51,3 +51,8 @@ test('#getCurrentDatetimeAsString correct format', t => {
t.is(d[19], '.')
t.is(d[d.length-3], ':')
})
test('#getShortOffsetName usual time', t => {
const d = new DateTimeWrapper({ text: '2020-12-24T16:45:00Z' })
t.is(d.getShortOffsetName(), 'UTC')
})