1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00

r10914: moved the ldap time string functions into ldb so they can be used by

the time attribute handling functions
This commit is contained in:
Andrew Tridgell
2005-10-12 06:30:47 +00:00
committed by Gerald (Jerry) Carter
parent f6818daecc
commit 93c296d527
7 changed files with 52 additions and 59 deletions

View File

@@ -23,6 +23,7 @@
#include "includes.h"
#include "scripting/ejs/smbcalls.h"
#include "lib/appweb/ejs/ejs.h"
#include "lib/ldb/include/ldb.h"
#include "system/time.h"
/*
@@ -111,7 +112,7 @@ static int ejs_sys_ldaptime(MprVarHandle eid, int argc, struct MprVar **argv)
return -1;
}
t = nt_time_to_unix(mprVarToNumber(argv[0]));
s = ldap_timestring(mprMemCtx(), t);
s = ldb_timestring(mprMemCtx(), t);
mpr_Return(eid, mprString(s));
talloc_free(s);
return 0;