rrlp-ephemeris: Fill ref time with UBX AID_INI messages

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
diff --git a/ubx-parse.c b/ubx-parse.c
index 1dbb279..c3d0f70 100644
--- a/ubx-parse.c
+++ b/ubx-parse.c
@@ -84,8 +84,12 @@
 
 	//printf("[.] AID_INI\n");
 
-	// FIXME: Extract info for "Reference Time"
-	
+	/* Extract info for "Reference Time" */
+	gps->fields |= GPS_FIELD_REFTIME;
+
+	gps->ref_time.wn = aid_ini->wn;
+	gps->ref_time.tow = (double)aid_ini->tow * 1e-3;
+
 	// FIXME: We could extract ref position as well but we need it in
 	//        WGS84 geodetic coordinates and it's provided as ecef, so
 	//        we need a lot of math ...