modified getBeaconTime