On s'arrange pour avoir la meme heure dans l'historique et dans la
sauvegarde des donnes darcs-hash:20041014090237-d1718-a046d8417bf98e314253a1d63fe82174766b44c8.gz
This commit is contained in:
parent
1143a85017
commit
8e44ab2532
1 changed files with 4 additions and 3 deletions
|
@ -758,12 +758,13 @@ class base_classes_crans(crans_ldap) :
|
|||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue