Add fetch datetime depending on Internet connection