- Timestamp:
- Nov 7, 2007, 8:57:44 AM (17 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r565 r566 147 147 148 148 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(); 151 150 *_logStream << msg.data() << endl; 152 151 _logStream->flush(); … … 238 237 if (!_ephPath.isEmpty()) { 239 238 240 QDateTime datTim = QDateTime::currentDateTime() ;239 QDateTime datTim = QDateTime::currentDateTime().toUTC(); 241 240 242 241 QString hlp = (_rinexVers == 3) ? "MIX_" : "GPS_"; … … 327 326 *_ephStreamGPS << line; 328 327 329 QString hlp = QDateTime::currentDateTime().to String("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);328 QString hlp = QDateTime::currentDateTime().toUTC().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true); 330 329 *_ephStreamGPS << _pgmName.toAscii().data() 331 330 << _userName.toAscii().data() … … 349 348 *_ephStreamGPS << line; 350 349 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); 352 351 *_ephStreamGPS << _pgmName.toAscii().data() 353 352 << _userName.toAscii().data() … … 366 365 *_ephStreamGlonass << line; 367 366 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); 369 368 *_ephStreamGlonass << _pgmName.toAscii().data() 370 369 << _userName.toAscii().data() -
trunk/BNC/bncgetthread.cpp
r565 r566 195 195 if (lon < -180.) {lon=(lon+360.); flagE="E";} 196 196 if (lat < 0.) {lat=lat*(-1.); flagN="S";} 197 QTime ttime(Q Time::currentTime());197 QTime ttime(QDateTime::currentDateTime().toUTC().time()); 198 198 int lat_deg = (int)lat; 199 199 double lat_min=(lat-lat_deg)*60.; -
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; -
trunk/BNC/bncwindow.cpp
r565 r566 594 594 595 595 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; 598 597 _log->clear(); 599 598 _log->append(txt.right(maxBufferSize)); -
trunk/BNC/bnczerodecoder.cpp
r464 r566 71 71 //////////////////////////////////////////////////////////////////////// 72 72 void bncZeroDecoder::reopen() { 73 QDate currDate = QDate ::currentDate();73 QDate currDate = QDateTime::currentDateTime().toUTC().date(); 74 74 if (!_out || _fileDate != currDate) { 75 75 delete _out;
Note:
See TracChangeset
for help on using the changeset viewer.