From 68a01155d0823eef87961e5cb0a34b222a31ec41 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 12 Jan 2009 00:06:10 +0000 Subject: [PATCH] --- yaml --- r: 129721 b: refs/heads/master c: e6210f3be5b13b6cda9c8dad8926818a73c8e6ac h: refs/heads/master i: 129719: 987e1acb1748b54f7b65630d4b04e76e4f2ee8ff v: v3 --- [refs] | 2 +- trunk/net/netfilter/xt_time.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d896f07a4ad6..eae98281f85e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cd7fcbf1cb6933bfb9171452b4a370c92923544d +refs/heads/master: e6210f3be5b13b6cda9c8dad8926818a73c8e6ac diff --git a/trunk/net/netfilter/xt_time.c b/trunk/net/netfilter/xt_time.c index 29375ba8db73..93acaa59d108 100644 --- a/trunk/net/netfilter/xt_time.c +++ b/trunk/net/netfilter/xt_time.c @@ -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); }