MartijnBraam / gpsd-py3

Python 3 GPSD client
105 stars 45 forks source link

Time method's called incorrectly #13

Open kmacvittie opened 6 years ago

kmacvittie commented 6 years ago

The methods for calling UTC and local time in the sample code are called incorrectly. The current sample code is:

print("Time UTC: " + str(packet.time_utc()))
print("Time Local: " + str(packet.time_local()))

According to the docs (and verified personally) it should be:

   print("Time UTC: " + str(packet.get_time()))
   print("Time Local: " + str(packet.get_time(local_time=True)))