timestamp check and turn off online flag