summaryrefslogtreecommitdiff
path: root/source4/web
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-04-10 20:18:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:11 -0500
commitac193579e7db00c7a2ea0aadaaf0d34c10dcf1a5 (patch)
treebcd9a0afdc2996df4a56479932b7d36d32c50f8d /source4/web
parent91b30df39bfaec8bfa32be40a13fd62008f66b9e (diff)
downloadsamba-ac193579e7db00c7a2ea0aadaaf0d34c10dcf1a5.tar.gz
samba-ac193579e7db00c7a2ea0aadaaf0d34c10dcf1a5.tar.bz2
samba-ac193579e7db00c7a2ea0aadaaf0d34c10dcf1a5.zip
r152: a quick airport commit ....
added ldbedit, a _really_ useful command added ldbadd, ldbdel, ldbsearch and ldbmodify to build solved lots of timezone issues, we now pass the torture tests with client and server in different zones fixed several build issues I know this breaks the no-LDAP build. Wait till I arrive in San Jose for that fix. (This used to be commit af34710d4da1841653624fe304b1c8d812c0fdd9)
Diffstat (limited to 'source4/web')
-rw-r--r--source4/web/statuspage.c2
-rw-r--r--source4/web/swat.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/web/statuspage.c b/source4/web/statuspage.c
index 33bf63ae62..c83d0af021 100644
--- a/source4/web/statuspage.c
+++ b/source4/web/statuspage.c
@@ -96,7 +96,7 @@ static char *mapPid2Machine (pid_t pid)
static char *tstring(time_t t)
{
static pstring buf;
- pstrcpy(buf, asctime(LocalTime(&t)));
+ pstrcpy(buf, asctime(localtime(&t)));
all_string_sub(buf," ","&nbsp;",sizeof(buf));
return buf;
}
diff --git a/source4/web/swat.c b/source4/web/swat.c
index 1e01910061..ec646f5848 100644
--- a/source4/web/swat.c
+++ b/source4/web/swat.c
@@ -381,7 +381,7 @@ static void write_config(FILE *f, BOOL show_defaults)
{
fprintf(f, "# Samba config file created using SWAT\n");
fprintf(f, "# from %s (%s)\n", cgi_remote_host(), cgi_remote_addr());
- fprintf(f, "# Date: %s\n\n", timestring(False));
+ fprintf(f, "# Date: %s\n\n", timestring(time(NULL)));
lp_dump(f, show_defaults, iNumNonAutoPrintServices);
}