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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.