Index: trunk/BNC/RTCM3/RTCM3Decoder.cpp
===================================================================
--- trunk/BNC/RTCM3/RTCM3Decoder.cpp	(revision 2462)
+++ trunk/BNC/RTCM3/RTCM3Decoder.cpp	(revision 2463)
@@ -366,12 +366,13 @@
 
 bool RTCM3Decoder::storeEph(const t_ephGPS& gpseph) {
+  const double secPerWeek = 7.0 * 24.0 * 3600.0;
   double weekold = 0.0;
-  double weeknew = gpseph.GPSweek() + gpseph.GPSweeks() / 86400.0;
+  double weeknew = gpseph.GPSweek() + gpseph.GPSweeks() / secPerWeek;
   if ( _ephList.find(gpseph.prn()) != _ephList.end() ) {
     weekold = _ephList.find(gpseph.prn())->second.GPSweek() 
-            + _ephList.find(gpseph.prn())->second.GPSweeks() / 86400.0; 
-  }
-
-  if ( weeknew - weekold > 1/86400.0 ) {
+            + _ephList.find(gpseph.prn())->second.GPSweeks() / secPerWeek; 
+  }
+
+  if ( weeknew - weekold > 1.0/secPerWeek ) {
     _ephList[gpseph.prn()] = gpseph;
 
