Index: trunk/BNC/RTCM3/ephemeris.cpp
===================================================================
--- trunk/BNC/RTCM3/ephemeris.cpp	(revision 2256)
+++ trunk/BNC/RTCM3/ephemeris.cpp	(revision 2257)
@@ -256,15 +256,8 @@
   int ww  = ee->GPSWeek;
   int tow = ee->GPSTOW; 
-
-  updatetime(&ww, &tow, ee->tb*1000, 0);
-
-  int tk = ee->tk-3*60*60; 
-  if (tk < 0) {
-    tk += 86400;
-  }
+  updatetime(&ww, &tow, ee->tb*1000, 0);  // Moscow -> GPS
 
   _GPSweek           = ww;
   _GPSweeks          = tow;
-  _gps_utc           = 0.0;
   _E                 = ee->E;
   _tau               = ee->tau;
@@ -281,5 +274,5 @@
   _health            = 0;
   _frequency_number  = ee->frequency_number;
-  _tki               = tk;
+  _tki               = ee->tk-3*60*60; if (_tki < 0) _tki += 86400;
 
   // Initialize status vector
Index: trunk/BNC/RTCM3/ephemeris.h
===================================================================
--- trunk/BNC/RTCM3/ephemeris.h	(revision 2256)
+++ trunk/BNC/RTCM3/ephemeris.h	(revision 2257)
@@ -91,5 +91,5 @@
 class t_ephGlo : public t_eph {
  public:
-  t_ephGlo() { _gps_utc = 0.0; _xv.ReSize(6); }
+  t_ephGlo() { _xv.ReSize(6); }
 
   virtual ~t_ephGlo() {}
@@ -109,5 +109,4 @@
   mutable ColumnVector _xv;  // status vector (position, velocity) at time _tt
 
-  double  _gps_utc;          // GPS - UTC in seconds      
   double  _E;                // [days]   
   double  _tau;              // [s]      
Index: trunk/BNC/bncapp.cpp
===================================================================
--- trunk/BNC/bncapp.cpp	(revision 2256)
+++ trunk/BNC/bncapp.cpp	(revision 2257)
@@ -218,9 +218,9 @@
     wwOld  = (*ee)->GPSWeek;
     towOld = (*ee)->GPSTOW; 
-    updatetime(&wwOld, &towOld, (*ee)->tb*1000, 0);
+    updatetime(&wwOld, &towOld, (*ee)->tb*1000, 0);  // Moscow -> GPS
 
     wwNew  = glonasseph->GPSWeek;
     towNew = glonasseph->GPSTOW; 
-    updatetime(&wwNew, &towNew, glonasseph->tb*1000, 0);
+    updatetime(&wwNew, &towNew, glonasseph->tb*1000, 0); // Moscow -> GPS
   }
 
@@ -481,5 +481,5 @@
   struct converttimeinfo cti;
 
-  updatetime(&ww, &tow, ep->tb*1000, 1);
+  updatetime(&ww, &tow, ep->tb*1000, 1);  // Moscow -> UTC
   converttime(&cti, ww, tow);
 
Index: trunk/BNC/bnctime.cpp
===================================================================
--- trunk/BNC/bnctime.cpp	(revision 2256)
+++ trunk/BNC/bnctime.cpp	(revision 2257)
@@ -6,5 +6,5 @@
 
 #include "bnctime.h"
-#include "RTCM3/timeutils.h"
+#include "timeutils.h"
 
 using namespace std;
