def joindate(self): """ Converts the user's join date (if it exists) to a datetime.date object that can easily be compared with other dates. """ if not self.memberSince: return None return utils.date_from_ldap_timestamp(self.memberSince)
def joindate(self): """ Converts the user's join date (if it exists) to a datetime.date object that can easily be compared with other dates. """ if not self.memberSince: return None return utils.date_from_ldap_timestamp(self.memberSince)
def birthdate(self): """ Converts the user's birthday (if it exists) to a datetime.date object that can easily be compared with other dates. """ if not self.birthday: return None return utils.date_from_ldap_timestamp(self.birthday)
def birthdate(self): """ Converts the user's birthday (if it exists) to a datetime.date object that can easily be compared with other dates. """ if not self.birthday: return None return utils.date_from_ldap_timestamp(self.birthday)