mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
test: add plus sign to timezone in Sieve script
This commit is contained in:
@@ -119,7 +119,7 @@ describe('Sieve', function() {
|
||||
'0' + tomorrow.getDate()
|
||||
].map(component => component.slice(-2)).join('-')
|
||||
const startTime = '17:00'
|
||||
const timezone = (user.timezone < 0 ? '-':'') + ('000' + Math.abs(user.timezone)).slice(-4)
|
||||
const timezone = (user.timezone < 0 ? '-':'+') + ('000' + Math.abs(user.timezone)).slice(-4)
|
||||
const sieveVacationConstraints = `require ["vacation","date","relational"];\r\nif allof ( currentdate :value "ge" "date" "${startDate}", date :value "ge" :zone "${timezone}" "date" "time" "${startTime}:00" ) { vacation :days ${daysInterval} :addresses ["${mailaddr}"] text:\r\n${vacationMsg}\r\n.\r\n;\r\n}\r\n`
|
||||
let vacation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user