Skip to content
Snippets Groups Projects
Commit 011c8f83 authored by Christopher Wipf's avatar Christopher Wipf
Browse files

src/gds/tconv.c: add leap second from 2017

This fixes a bug in which arbitrary waveform excitations failed, with awgtpman reporting the data was too far in the future
parent df5e0c7d
No related branches found
No related tags found
1 merge request!30src/gds/tconv.c: add leap second from 2017
......@@ -103,7 +103,7 @@ typedef int confinfo_t;
There must one entry for every added leap second.
This list has to be in ascending order of time. */
static int num_leaps = 26;
static int num_leaps = 27;
static leap_t leaps[100] =
{{OFFS_TAI + 182*SECS_PER_DAY, +1}, /* Jul. 1, 1972 */
{OFFS_TAI + (365+1)*SECS_PER_DAY+ 1, +2}, /* Jan. 1, 1973 */
......@@ -130,7 +130,8 @@ typedef int confinfo_t;
{OFFS_TAI + (34*365+9)*SECS_PER_DAY+22, +23}, /* Jan. 1, 2006 */
{OFFS_TAI + (37*365+10)*SECS_PER_DAY+23,+24}, /* Jan. 1, 2009 */
{OFFS_TAI + (40*365+10+182)*SECS_PER_DAY+24,+25}, /* Jul. 1, 2012 */
{OFFS_TAI + (43*365+11+181)*SECS_PER_DAY+25,+26}}; /* Jul. 1, 2015 */
{OFFS_TAI + (43*365+11+181)*SECS_PER_DAY+25,+26}, /* Jul. 1, 2015 */
{OFFS_TAI + (45*365+12)*SECS_PER_DAY+26,+27}}; /* Jan. 1, 2017 */
#if (defined (_CONFIG_DYNAMIC) || defined (OS_VXWORKS)) && \
defined (_LEAP_DYNAMIC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment