title: Fused Location Api Get time from GPS
body: <p>I have an application that tracks users location.
  My application uses <code>FusedLocationApi</code> , Google new way of getting device location using Google Play Services.</p>
  
  <p>Provider of locations that i give from GPS is labeled as <strong>fused</strong>.</p>
  
  <p>Because of application users may change device time, it is important to get real time from GPS. </p>
  
  <p>Problem is that when i try to get time from <code>Location</code> object , it returns device time not GPS time.</p>
  
  <p>Any solutions to get GPS time in this situation are appreciated.</p>
  
  <pre><code>private Location mLastLocation;    
  
  public void onConnected(Bundle arg0) {
  
      LocationServices.FusedLocationApi.requestLocationUpdates(
              mGoogleApiClient, mLocationRequest, this);
  }
  
  public void onLocationChanged(Location location) {
  
      mLastLocation = LocationServices.FusedLocationApi
              .getLastLocation(mGoogleApiClient);
  
      if (mLastLocation != null) {
  
          double latitude = mLastLocation.getLatitude();
          double longitude = mLastLocation.getLongitude();
          Date date = new Date(mLastLocation.getTime());
  
          SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss");            
          String time = dateFormat.format(date)
  }
  </code></pre>