summaryrefslogtreecommitdiff
path: root/lib/util/time.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-11 09:49:12 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-11 03:54:44 +0200
commit530e4cac2e93177923080daa5ec1bac2c65d269b (patch)
tree088e79b4d28869fb4c51b1cbdfc7ca852bbc1f35 /lib/util/time.c
parent35aeeab29dc414bff9123d8cf059e981397cae79 (diff)
downloadsamba-530e4cac2e93177923080daa5ec1bac2c65d269b.tar.gz
samba-530e4cac2e93177923080daa5ec1bac2c65d269b.tar.bz2
samba-530e4cac2e93177923080daa5ec1bac2c65d269b.zip
s3-param Remove 'time offset' from smb.conf
This strange parameter is apparently very rarely used, and it seems to me that on modern networks, if clients don't have correct clocks and DST offsets, that many other things (Kerberos) start to fail pretty quickly, and time and DST tables tend to be internet delivered anyway. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Jun 11 03:54:45 CEST 2011 on sn-devel-104
Diffstat (limited to 'lib/util/time.c')
-rw-r--r--lib/util/time.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/util/time.c b/lib/util/time.c
index d8fd4a3dfc..31aa05cd0f 100644
--- a/lib/util/time.c
+++ b/lib/util/time.c
@@ -738,8 +738,6 @@ static int tm_diff(struct tm *a, struct tm *b)
}
-int extra_time_offset=0;
-
/**
return the UTC offset in seconds west of UTC, or 0 if it cannot be determined
*/
@@ -753,7 +751,7 @@ _PUBLIC_ int get_time_zone(time_t t)
tm = localtime(&t);
if (!tm)
return 0;
- return tm_diff(&tm_utc,tm)+60*extra_time_offset;
+ return tm_diff(&tm_utc,tm);
}
struct timespec nt_time_to_unix_timespec(NTTIME *nt)