Index: trunk/BNC/RTCM3/RTCM3Decoder.cpp
===================================================================
--- trunk/BNC/RTCM3/RTCM3Decoder.cpp	(revision 1130)
+++ trunk/BNC/RTCM3/RTCM3Decoder.cpp	(revision 1153)
@@ -63,6 +63,4 @@
 ////////////////////////////////////////////////////////////////////////////
 RTCM3Decoder::RTCM3Decoder(const QString& staID) : GPSDecoder() {
-
-  const int LEAPSECONDS = 14; /* only needed for approx. time */
 
   QSettings settings;
@@ -95,10 +93,9 @@
   _Parser.rinex3 = 0;
 
-  time_t tim;
-  tim = time(0) - ((10*365+2+5)*24*60*60 + LEAPSECONDS);
-
   memset(&_Parser, 0, sizeof(_Parser));
-  _Parser.GPSWeek = tim/(7*24*60*60);
-  _Parser.GPSTOW  = tim%(7*24*60*60);
+
+  double secGPS;
+  currentGPSWeeks(_Parser.GPSWeek, secGPS);
+  _Parser.GPSTOW = int(secGPS);
 
   connect(this, SIGNAL(newGPSEph(gpsephemeris*)), 
@@ -142,5 +139,5 @@
             double sec;
             _newSecGPS = _coDecoder->_epochList[ii];
-            leapsecGPSWeeks(week, sec);
+            currentGPSWeeks(week, sec);
             double dt = fabs(sec - _newSecGPS);
             const double secPerWeek = 7.0 * 24.0 * 3600.0;
