Changeset 566 in ntrip for trunk/BNC/bncrinex.cpp
- Timestamp:
- Nov 7, 2007, 8:57:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncrinex.cpp
r556 r566 223 223 // -------------------- 224 224 else { 225 QDate currDate = QDate ::currentDate();225 QDate currDate = QDateTime::currentDateTime().toUTC().date(); 226 226 if ( !_skeletonDate.isValid() || _skeletonDate != currDate ) { 227 227 if ( downloadSkeleton() == success) { … … 362 362 if (line.indexOf("PGM / RUN BY / DATE") != -1) { 363 363 if (_rinexVers == 3) { 364 QString hlp = QDateTime::currentDateTime().to String("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);364 QString hlp = QDateTime::currentDateTime().toUTC().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true); 365 365 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 366 366 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; 367 367 } 368 368 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); 370 370 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 371 371 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; … … 405 405 if (_rinexVers == 3) { 406 406 _out << " 3.00 OBSERVATION DATA M (MIXED) RINEX VERSION / TYPE" << endl; 407 QString hlp = QDateTime::currentDateTime().to String("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);407 QString hlp = QDateTime::currentDateTime().toUTC().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true); 408 408 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 409 409 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; … … 411 411 else { 412 412 _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); 414 414 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 415 415 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.