You are here

function simple_ldap_timestamp_to_ldap_time in Simple LDAP 7.2

File

./simple_ldap.module, line 125
Main simple_ldap module file.

Code

function simple_ldap_timestamp_to_ldap_time($ts) {
  $tz = date_default_timezone_get();
  date_default_timezone_set('UTC');
  $ldap_time = date('YmdHis', $ts) . 'Z';
  date_default_timezone_set($tz);
  return $ldap_time;
}