glidernet / ogn-python

A gateway with built-in database for the Open Glider Network (OGN)
http://glidernet.org
GNU Affero General Public License v3.0
17 stars 4 forks source link

Add user-defined exception AmbigousTimeError #24

Closed kerel-fs closed 8 years ago

kerel-fs commented 8 years ago

Parsing an outdated aprs packet always raises an AmbigousTimeError now.

As the aprs string only contains time information and no date, the sender date is never unambiguous. Around midnight(+-one hour) manual date correction is applied. Thus, packets older than one hour produce the new error and are dropped.