Changeset 566 in ntrip for trunk/BNC/bncapp.cpp


Ignore:
Timestamp:
Nov 7, 2007, 8:57:44 AM (19 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r565 r566  
    147147
    148148  if (_logStream) {
    149     *_logStream << QDate::currentDate().toString("yy-MM-dd ").toAscii().data();
    150     *_logStream << QTime::currentTime().toString("hh:mm:ss ").toAscii().data();
     149    *_logStream << QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ").toAscii().data();
    151150    *_logStream << msg.data() << endl;
    152151    _logStream->flush();
    … …  
    238237  if (!_ephPath.isEmpty()) {
    239238
    240     QDateTime datTim = QDateTime::currentDateTime();
     239    QDateTime datTim = QDateTime::currentDateTime().toUTC();
    241240
    242241    QString hlp = (_rinexVers == 3) ? "MIX_" : "GPS_";
    … …  
    327326        *_ephStreamGPS << line;
    328327       
    329         QString hlp = QDateTime::currentDateTime().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
     328        QString hlp = QDateTime::currentDateTime().toUTC().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
    330329        *_ephStreamGPS << _pgmName.toAscii().data()
    331330                       << _userName.toAscii().data()
    … …  
    349348        *_ephStreamGPS << line;
    350349         
    351         QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
     350        QString hlp = QDateTime::currentDateTime().toUTC().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
    352351        *_ephStreamGPS << _pgmName.toAscii().data()
    353352                       << _userName.toAscii().data()
    … …  
    366365        *_ephStreamGlonass << line;
    367366       
    368         QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
     367        QString hlp = QDateTime::currentDateTime().toUTC().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
    369368        *_ephStreamGlonass << _pgmName.toAscii().data()
    370369                           << _userName.toAscii().data()
Note: See TracChangeset for help on using the changeset viewer.