Index: /trunk/BNC/bncapp.cpp
===================================================================
--- /trunk/BNC/bncapp.cpp	(revision 565)
+++ /trunk/BNC/bncapp.cpp	(revision 566)
@@ -147,6 +147,5 @@
 
   if (_logStream) {
-    *_logStream << QDate::currentDate().toString("yy-MM-dd ").toAscii().data();
-    *_logStream << QTime::currentTime().toString("hh:mm:ss ").toAscii().data();
+    *_logStream << QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ").toAscii().data();
     *_logStream << msg.data() << endl;
     _logStream->flush();
@@ -238,5 +237,5 @@
   if (!_ephPath.isEmpty()) {
 
-    QDateTime datTim = QDateTime::currentDateTime();
+    QDateTime datTim = QDateTime::currentDateTime().toUTC();
 
     QString hlp = (_rinexVers == 3) ? "MIX_" : "GPS_";
@@ -327,5 +326,5 @@
         *_ephStreamGPS << line;
         
-        QString hlp = QDateTime::currentDateTime().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
+        QString hlp = QDateTime::currentDateTime().toUTC().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
         *_ephStreamGPS << _pgmName.toAscii().data() 
                        << _userName.toAscii().data() 
@@ -349,5 +348,5 @@
         *_ephStreamGPS << line;
          
-        QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
+        QString hlp = QDateTime::currentDateTime().toUTC().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
         *_ephStreamGPS << _pgmName.toAscii().data() 
                        << _userName.toAscii().data() 
@@ -366,5 +365,5 @@
         *_ephStreamGlonass << line;
         
-        QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
+        QString hlp = QDateTime::currentDateTime().toUTC().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
         *_ephStreamGlonass << _pgmName.toAscii().data() 
                            << _userName.toAscii().data() 
Index: /trunk/BNC/bncgetthread.cpp
===================================================================
--- /trunk/BNC/bncgetthread.cpp	(revision 565)
+++ /trunk/BNC/bncgetthread.cpp	(revision 566)
@@ -195,5 +195,5 @@
     if (lon < -180.)  {lon=(lon+360.); flagE="E";}
     if (lat < 0.)  {lat=lat*(-1.); flagN="S";}
-    QTime ttime(QTime::currentTime());
+    QTime ttime(QDateTime::currentDateTime().toUTC().time());
     int lat_deg = (int)lat;  
     double lat_min=(lat-lat_deg)*60.;
Index: /trunk/BNC/bncrinex.cpp
===================================================================
--- /trunk/BNC/bncrinex.cpp	(revision 565)
+++ /trunk/BNC/bncrinex.cpp	(revision 566)
@@ -223,5 +223,5 @@
   // --------------------
   else {
-    QDate currDate = QDate::currentDate();
+    QDate currDate = QDateTime::currentDateTime().toUTC().date();
     if ( !_skeletonDate.isValid() || _skeletonDate != currDate ) {
       if ( downloadSkeleton() == success) {
@@ -362,10 +362,10 @@
       if      (line.indexOf("PGM / RUN BY / DATE") != -1) {
         if (_rinexVers == 3) {
-          QString hlp = QDateTime::currentDateTime().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
+          QString hlp = QDateTime::currentDateTime().toUTC().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
           _out << _pgmName.toAscii().data() << _userName.toAscii().data() 
                << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
         }
         else {
-          QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
+          QString hlp = QDateTime::currentDateTime().toUTC().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
           _out << _pgmName.toAscii().data() << _userName.toAscii().data() 
                << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
@@ -405,5 +405,5 @@
     if (_rinexVers == 3) {
       _out << "     3.00           OBSERVATION DATA    M (MIXED)           RINEX VERSION / TYPE" << endl;
-      QString hlp = QDateTime::currentDateTime().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
+      QString hlp = QDateTime::currentDateTime().toUTC().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
       _out << _pgmName.toAscii().data() << _userName.toAscii().data() 
            << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
@@ -411,5 +411,5 @@
     else {
       _out << "     2.11           OBSERVATION DATA    M (MIXED)           RINEX VERSION / TYPE" << endl;
-      QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
+      QString hlp = QDateTime::currentDateTime().toUTC().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
       _out << _pgmName.toAscii().data() << _userName.toAscii().data() 
            << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
Index: /trunk/BNC/bncwindow.cpp
===================================================================
--- /trunk/BNC/bncwindow.cpp	(revision 565)
+++ /trunk/BNC/bncwindow.cpp	(revision 566)
@@ -594,6 +594,5 @@
  
   QString txt = _log->toPlainText() + "\n" + 
-     QDate::currentDate().toString("yy-MM-dd ") +
-     QTime::currentTime().toString("hh:mm:ss ") + msg;
+     QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ") + msg;
   _log->clear();
   _log->append(txt.right(maxBufferSize));
Index: /trunk/BNC/bnczerodecoder.cpp
===================================================================
--- /trunk/BNC/bnczerodecoder.cpp	(revision 565)
+++ /trunk/BNC/bnczerodecoder.cpp	(revision 566)
@@ -71,5 +71,5 @@
 //////////////////////////////////////////////////////////////////////// 
 void bncZeroDecoder::reopen() {
-  QDate currDate = QDate::currentDate();
+  QDate currDate = QDateTime::currentDateTime().toUTC().date();
   if (!_out || _fileDate != currDate) {
     delete _out;
