Format last seen time on device index page