summaryrefslogtreecommitdiff
path: root/timehint.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-07-19 22:41:20 -0700
committerGary E. Miller <gem@rellim.com>2016-07-19 22:41:47 -0700
commit71335d2ae30c46998548fb44d37bbba83bfd38ce (patch)
tree8041e52ff79ed8054241f6c49d6ad94510bd01d8 /timehint.c
parentd761b2004d4d7fa28e63d96ee12ab7b91dde9cac (diff)
downloadgpsd-71335d2ae30c46998548fb44d37bbba83bfd38ce.tar.gz
Modify misleading comment on leap seconds.
Diffstat (limited to 'timehint.c')
-rw-r--r--timehint.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/timehint.c b/timehint.c
index abe15b57..d6bd5d98 100644
--- a/timehint.c
+++ b/timehint.c
@@ -315,10 +315,15 @@ static void chrony_send(struct gps_device_t *session, struct timedelta_t *td)
struct tm tm;
int leap_notify = session->context->leap_notify;
- /* insist that leap seconds only happen in june and december
+ /*
+ * insist that leap seconds only happen in june and december
* GPS emits leap pending for 3 months prior to insertion
* NTP expects leap pending for only 1 month prior to insertion
- * Per http://bugs.ntp.org/1090 */
+ * Per http://bugs.ntp.org/1090
+ *
+ * ITU-R TF.460-6, Section 2.1, says lappe seconds can be primarily
+ * in Jun/Dec but may be in March or September
+ */
(void)gmtime_r( &(td->real.tv_sec), &tm);
if ( 5 != tm.tm_mon && 11 != tm.tm_mon ) {
/* Not june, not December, no way */