# Your VOTER/RTCM May Have Broken Itself on 01/01/21 00:01

**URL:** <https://community.allstarlink.org/t/your-voter-rtcm-may-have-broken-itself-on-01-01-21-00-01/18031>\
**Category:** AllStarLink\
**Created:** [January 4, 2021, 6:44am UTC](https://community.allstarlink.org/t/your-voter-rtcm-may-have-broken-itself-on-01-01-21-00-01/18031 "2021-01-04T06:44:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![W8khw1](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/w/b9bd4f/32.png) [@W8khw1](https://community.allstarlink.org/u/W8khw1)\
**Post date:** [January 4, 2021, 7:04am UTC](https://community.allstarlink.org/t/your-voter-rtcm-may-have-broken-itself-on-01-01-21-00-01/18031/2 "2021-01-04T07:04:50Z")

</div>

Wow, great catch. I just checked my RTCM’s and they are indeed showing the wrong date of 01/01/1970. It’s surprising to me that the message thread you referenced was from back in 2012.

73,

Kevin  
W8KHW

> **···**
>
> On Mon, Jan 4, 2021 at 1:54 AM Lee via AllStarLink Discussion Groups \<[noreply@community.allstarlink.org](mailto:noreply@community.allstarlink.org)\> wrote:
> 
> > > ![](https://community.allstarlink.org/user_avatar/community.allstarlink.org/ve7fet/45/1267_2.png "ve7fet") | [ve7fet](https://community.allstarlink.org/u/ve7fet)  
> > > January 4 |
> > > 
> > > - | - |
> > 
> > Well, I found this (by accident) about a month ago, which scared the hell out of me:
> > 
> > [https://www.microchip.com/forums/m653169.aspx](https://www.microchip.com/forums/m653169.aspx)
> > 
> > So, I did some testing/compiling to fast-forward time, and watch how it behaved when time rolled over.
> > 
> > Apparently, my testing wasn’t very good, because in my tests time rolled over fine from 12/31/2020 to 01/01/2021.
> > 
> > If you go look at the time in your VOTER/RTCM right now, it is going to be a mess (98 - status or debug 32), and if you do a voter debug level 3 in Asterisk, you’re going to see some strange things too (time starting back at around 1969 or 1970).
> > 
> > Indeed, mktime in the C30 compiler is broken, and broke the firmware in the VOTER/RTCM.
> > 
> > This may cause your satellite receivers to show they are connected to Asterisk, but they never receive anything. That will happen if there is a time differential between your master and the satellite receivers.
> > 
> > I’m going to try a couple solutions to see if I can find a way around this bug. I am hoping I can do a “Jim Special” and come up with a kluge to convert the time from the GPS to epoch time, without using mktime. I have seen some example code, and will see if I can cram it in to the PIC (man, space is getting real tight).
> > 
> > So, if you are seeing broken times, or your satellite receivers may have fallen off the air, this may be the cause.
> > 
> > I’m developing it over on my Github repo, along with some other firmware changes, and will create a pull request if I can find a solution, and once all the politics with the official repo get sorted out.
> > 
> > Lee
> > 
> > * * *
> > 
> > [Visit Topic](https://community.allstarlink.org/t/your-voter-rtcm-may-have-broken-itself-on-01-01-21-00-01/18031/1) or reply to this email to respond.
> > 
> > You are receiving this because you enabled mailing list mode.
> > 
> > To unsubscribe from these emails, [click here](https://community.allstarlink.org/email/unsubscribe/7e90c7bca45b958ac5507d41c092959e81edfc09da0e9a3540c9b5b826f5d7ab).

---

_[View the full topic](https://community.allstarlink.org/t/your-voter-rtcm-may-have-broken-itself-on-01-01-21-00-01/18031)._
