Changeset 10566 in ntrip


Ignore:
Timestamp:
Oct 11, 2024, 3:48:52 PM (13 days ago)
Author:
stuerze
Message:

bug fixed in BDT methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnctime.cpp

    r8718 r10566  
    199199  long     gpsw;
    200200  jdgp(_mjd, gsec, gpsw);
    201   if(gsec <= 14.0)
     201  if(_sec < 14.0)
    202202    gpsw -= 1;
    203203  return (int)gpsw-1356;
     
    210210  long     gpsw;
    211211  jdgp(_mjd, gsec, gpsw);
    212   if(gsec <= 14.0)
    213     gsec += 7.0*24.0*60.0*60.0-14.0;
    214   else
    215     gsec -= 14.0;
     212  if(_sec < 14.0)
     213    gsec += 7.0*24.0*60.0*60.0;
     214  gsec -= 14.0;
    216215  return gsec + _sec;
    217216}
Note: See TracChangeset for help on using the changeset viewer.