--- a/misc/scripts/ldapuser2ldapfeed.py Fri Dec 18 09:37:15 2015 +0100
+++ b/misc/scripts/ldapuser2ldapfeed.py Fri Dec 18 09:23:23 2015 +0100
@@ -54,9 +54,9 @@
print('get back', etype, entity.eid)
entity.cw_edited = EditedEntity(entity, **entity.cw_attr_cache)
if not entity.creation_date:
- entity.cw_edited['creation_date'] = datetime.now()
+ entity.cw_edited['creation_date'] = datetime.utcnow()
if not entity.modification_date:
- entity.cw_edited['modification_date'] = datetime.now()
+ entity.cw_edited['modification_date'] = datetime.utcnow()
if not entity.upassword:
entity.cw_edited['upassword'] = generate_password()
extid = entity.cw_metainformation()['extid']