Changeset 566 in ntrip


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

* empty log message *

Location:
trunk/BNC
Files:
5 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()
  • trunk/BNC/bncgetthread.cpp

    r565 r566  
    195195    if (lon < -180.)  {lon=(lon+360.); flagE="E";}
    196196    if (lat < 0.)  {lat=lat*(-1.); flagN="S";}
    197     QTime ttime(QTime::currentTime());
     197    QTime ttime(QDateTime::currentDateTime().toUTC().time());
    198198    int lat_deg = (int)lat; 
    199199    double lat_min=(lat-lat_deg)*60.;
  • trunk/BNC/bncrinex.cpp

    r556 r566  
    223223  // --------------------
    224224  else {
    225     QDate currDate = QDate::currentDate();
     225    QDate currDate = QDateTime::currentDateTime().toUTC().date();
    226226    if ( !_skeletonDate.isValid() || _skeletonDate != currDate ) {
    227227      if ( downloadSkeleton() == success) {
     
    362362      if      (line.indexOf("PGM / RUN BY / DATE") != -1) {
    363363        if (_rinexVers == 3) {
    364           QString hlp = QDateTime::currentDateTime().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
     364          QString hlp = QDateTime::currentDateTime().toUTC().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
    365365          _out << _pgmName.toAscii().data() << _userName.toAscii().data()
    366366               << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
    367367        }
    368368        else {
    369           QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
     369          QString hlp = QDateTime::currentDateTime().toUTC().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
    370370          _out << _pgmName.toAscii().data() << _userName.toAscii().data()
    371371               << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
     
    405405    if (_rinexVers == 3) {
    406406      _out << "     3.00           OBSERVATION DATA    M (MIXED)           RINEX VERSION / TYPE" << endl;
    407       QString hlp = QDateTime::currentDateTime().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
     407      QString hlp = QDateTime::currentDateTime().toUTC().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
    408408      _out << _pgmName.toAscii().data() << _userName.toAscii().data()
    409409           << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
     
    411411    else {
    412412      _out << "     2.11           OBSERVATION DATA    M (MIXED)           RINEX VERSION / TYPE" << endl;
    413       QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
     413      QString hlp = QDateTime::currentDateTime().toUTC().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
    414414      _out << _pgmName.toAscii().data() << _userName.toAscii().data()
    415415           << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
  • trunk/BNC/bncwindow.cpp

    r565 r566  
    594594 
    595595  QString txt = _log->toPlainText() + "\n" +
    596      QDate::currentDate().toString("yy-MM-dd ") +
    597      QTime::currentTime().toString("hh:mm:ss ") + msg;
     596     QDateTime::currentDateTime().toUTC().toString("yy-MM-dd hh:mm:ss ") + msg;
    598597  _log->clear();
    599598  _log->append(txt.right(maxBufferSize));
  • trunk/BNC/bnczerodecoder.cpp

    r464 r566  
    7171////////////////////////////////////////////////////////////////////////
    7272void bncZeroDecoder::reopen() {
    73   QDate currDate = QDate::currentDate();
     73  QDate currDate = QDateTime::currentDateTime().toUTC().date();
    7474  if (!_out || _fileDate != currDate) {
    7575    delete _out;
Note: See TracChangeset for help on using the changeset viewer.