Could anyone help me fix this small bug that I seem to have in this popup

Code:
on *:join:#perpetual-night:{
  if ($window(@JoinLog) == $null) { .window -e @JoinLog }
  aline @Joinlog 4***5 $time(hh:mmtt) -7 $nick (11 $+ $address($nick,2) $+ ) joined7 $chan 
} 


The problem im having, is that the timestamp isnt changing, so its not showing the correct time.

anyhelp would be apreciated, also is it possible to add a date stamp alongside the time..

Thanks