You are not passing $lastlog1 to Perl correctly, so it's effectively doing
localtime(0). (The date it prints is Jan 1 1970 UTC 00:00:00 converted to your local time zone.)
Code:
perl -le 'print scalar localtime(shift)' $lastlog1
If you are using awk anyway, the awk solution
ripat posted would seem ideal.
Code:
lsuser -a time_last_login root|awk -F= '{print strftime("%Y-%m-%d %T",$2)}'