diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 946bcc5e..2ecdb4e8 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -757,13 +757,14 @@ class base_classes_crans(crans_ldap) : modif='inscription' else : modif=', '.join(self.modifs) - - hist = "%s, %s" % ( time.strftime(date_format), script_utilisateur ) + + timestamp = localtime() + hist = "%s, %s" % ( time.strftime(date_format, timestamp), script_utilisateur ) # On loggue try: fd = file('%s/%s_%s_%s' % ("%s/logs" % config.cimetiere, str(self.__class__).split('.')[-1], - time.strftime('%Y-%m-%d-%H:%M'), self.nom()),'wb') + time.strftime('%Y-%m-%d-%H:%M', timestamp), self.nom()),'wb') fd.write("%s\n" % self._data) fd.close() except: