Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129721
b: refs/heads/master
c: e6210f3
h: refs/heads/master
i:
  129719: 987e1ac
v: v3
  • Loading branch information
Jan Engelhardt authored and David S. Miller committed Jan 13, 2009
1 parent 15c0741 commit 68a0115
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd7fcbf1cb6933bfb9171452b4a370c92923544d
refs/heads/master: e6210f3be5b13b6cda9c8dad8926818a73c8e6ac
11 changes: 11 additions & 0 deletions trunk/net/netfilter/xt_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,17 @@ static struct xt_match xt_time_mt_reg __read_mostly = {

static int __init time_mt_init(void)
{
int minutes = sys_tz.tz_minuteswest;

if (minutes < 0) /* east of Greenwich */
printk(KERN_INFO KBUILD_MODNAME
": kernel timezone is +%02d%02d\n",
-minutes / 60, -minutes % 60);
else /* west of Greenwich */
printk(KERN_INFO KBUILD_MODNAME
": kernel timezone is -%02d%02d\n",
minutes / 60, minutes % 60);

return xt_register_match(&xt_time_mt_reg);
}

Expand Down

0 comments on commit 68a0115

Please sign in to comment.