changeset 6382:0371619d3851

mod_storage_ldap: Switch to prosody.util.time.now() to get the current time
author Link Mauve <linkmauve@linkmauve.fr>
date Fri, 30 Jan 2026 15:04:30 +0100
parents 268220ce0625
children 5d775652cb98
files mod_storage_ldap/mod_storage_ldap.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_ldap/mod_storage_ldap.lua	Fri Jan 30 15:04:25 2026 +0100
+++ b/mod_storage_ldap/mod_storage_ldap.lua	Fri Jan 30 15:04:30 2026 +0100
@@ -17,7 +17,7 @@
 local ldap         = module:require 'ldap';
 local vcardlib     = module:require 'ldap/vcard';
 local st           = require 'util.stanza';
-local gettime      = require 'socket'.gettime;
+local gettime      = require "prosody.util.time".now;
 
 if not ldap then
     return;