Replace
Code:
.msg $chan Welcome Back $nick $+ . Last time you joined $chan was on $2 $+ , $duration($calc($ctime - $3)) ago $+ . (Your total visits: %t $+ )
with
Code:
.msg $chan Welcome Back $nick $+ . Last time you joined $chan was $asctime($calc($ctime - $3)) ago. (Your total visits: %t $+ )