Menu

#322 Use Kernel Timezone in Time Module

open
nobody
time (1)
3
2015-07-09
2015-07-09
No

The time module has the following options:

iptables -m time --help

[…]

time match options:
--datestart time Start and stop time, to be given in ISO 8601
--datestop time (YYYY[-MM[-DD[Thh[:mm[:ss]]]]])
--timestart time Start and stop daytime (hh:mm[:ss])
--timestop time (between 00:00:00 and 23:59:59)
[!] --monthdays value List of days on which to match, separated by comma
(Possible days: 1 to 31; defaults to all)
[!] --weekdays value List of weekdays on which to match, sep. by comma
(Possible days: Mon,Tue,Wed,Thu,Fri,Sat,Sun or 1 to 7
Defaults to all weekdays.)
--kerneltz Work with the kernel timezone instead of UTC

All except two of these options are usable from FWBuilder. One of the not accessibles is the timezone: "kerneltz".
This is quite important for everybody, not living in the UTC zone.
And it would be easy to implement: Just add a checkbox "Use Kernel Timezone [YES/NO]" and then translate or not this into:

-m time --timestart 01:23 --timestop 23:45 --weekdays Mon,Tue,Wed,Thu,Fri --kerneltz

or not:

-m time --timestart 01:23 --timestop 23:45 --weekdays Mon,Tue,Wed,Thu,Fri

Thanks for all what you did so far!

Discussion


Log in to post a comment.

MongoDB Logo MongoDB