diff options
-rw-r--r-- | config/templates/polycom-template.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua index 8bc6a70..ffdbc83 100644 --- a/config/templates/polycom-template.lua +++ b/config/templates/polycom-template.lua @@ -149,14 +149,15 @@ if tz then end if t.day then - -- there may be two of next line, Polycom uses first - xml_attr({ dstprefix, 'fixedDayEnable' }, true) + if pos == 'start' then + xml_attr({ dstprefix, 'fixedDayEnable' }, true) + end xml_attr({ dstprefix, pos, 'month' }, t.month) xml_attr({ dstprefix, pos, 'date' }, t.day) else - - -- there may be two of next line, Polycom uses first - xml_attr({ dstprefix, 'fixedDayEnable' }, false) + if pos == 'start' then + xml_attr({ dstprefix, 'fixedDayEnable' }, false) + end xml_attr({ dstprefix, pos, 'month' }, t.month) -- POSIX weekday is between 0 (Sun) and 6 (Sat) |