- if ( ad_local == NULL ) {
- if ( slap_str2ad( "description;lang-x-local",
- &ad_local, &text ) != LDAP_SUCCESS ) {
+ ctm = localtime( ¤tTime );
+ local_time( ctm, -timezone, ctmbuf, sizeof( ctmbuf ) );
+#else /* !HACK_LOCAL_TIME */
+ ctm = gmtime( ¤tTime );
+ lutil_gentime( ctmbuf, sizeof( ctmbuf ), ctm );
+#endif /* !HACK_LOCAL_TIME */
+ }
+ ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
+
+ if ( ( entry == ENTRY_START && init_start == 0 )
+ || ( entry == ENTRY_CURRENT && init_current == 0 ) ) {
+ a = attr_find( e->e_attrs, slap_schema.si_ad_createTimestamp );
+ if ( a == NULL ) {