Leap Second
    Dag-Erling Smørgrav 
    des at des.no
       
    Thu Jul  2 08:43:28 UTC 2015
    
    
  
Leif Pedersen <bilbo at hobbiton.org> writes:
> Is there a reasonable way to enable awareness of leap-seconds while
> syncing with ntpd? That is to say, how can I get the system to include
> leap-seconds in calculating `date +%s`, without having `date` be off
> by 26[1] seconds?
No.  POSIX deals with leap seconds by pretending they don't exist.
> I tried setting /etc/localtime to UTC including leap-seconds [...]
> However, ntpd continues to sync the clock (from pool.ntp.org) in
> ignorance of leap-seconds. [...] Can ntpd undo the leap-seconds
> inserted by ntp.org? Or is there another NTP pool that would work for
> me?
NTP works in UTC as well.  The pool does not set the clock; all it does
is coordinate servers who claim to know the correct time.  I guess you
could try to convince the ISC and JHU to add a TAI offset field to the
next version of the NTP protocol...
DES
-- 
Dag-Erling Smørgrav - des at des.no
    
    
More information about the freebsd-security
mailing list