In the database it's NULL and on the profile it shows the N/A.Maybe the user has logged in, but the data aint saved properly. Or perhaps the login data was saved but not retrieved properly. You need to check the database table where the lastlogin field is stored, and see if it is 0 or NULL.
The database is setup like this:
lastlogin | INT | 20 | Default: Null | NULL
This is my class_userprofile.php
private function aboutme(){
$mysidia = Registry::get("mysidia");
$document = $mysidia->frame->getDocument();
$title = new Comment($mysidia->lang->basic.$mysidia->input->get("user"));
$membersince = $mysidia->db->select("users", array("membersince"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();
$line = $mysidia->db->select("online", array("username"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();
if($line == $mysidia->input->get("user")){$online = "<font color=green>Online</font>";}else{$online = '<font color=red>Offline</font>';}
$usergroup = $mysidia->db->select("users", array("usergroup"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();
$groups = $mysidia->db->select("groups", array("groupname"), "gid = '{$usergroup}'")->fetchColumn();
$deluxe = $mysidia->db->select("users", array("deluxe"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();
$active = $mysidia->db->select("users", array("active"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();
$inactive = $mysidia->db->select("users", array("inactive"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();
$expires = $mysidia->db->select("users", array("expires"), "username = '{$mysidia->input->get("user")}'")->fetchColumn();
$css = $mysidia->db->select("companion", array("css"), "unlocked = '{$this->companion}'")->fetchColumn();
$lastLoginDate = $current_user_i2->lastlogin ? (new DateTime("@{$current_user_i2->lastlogin}"))->format("d-m-Y") : "N/A";
$str_bio = stripslashes($this->bio);
$basicinfo = "<strong>Member Since:</strong> {$membersince}<br>
Online Status: {$online}</br>
Last Active: {$lastLoginDate}<br>
Title: {$groups}<br>
Deluxe:{$deluxe} <font color='red'><i>{$inactive}</i></font><font color='green'><i>{$active}</font></i> <b>{$expires}</b><br>
Name: {$this->nickname}{$nickname}<br>
Gender: {$this->gender}<br>
<br>
Bio: <br><b>{$str_bio}</b>";