adafruit / Adafruit_CircuitPython_NTP

Network Time Protocol (NTP) Helper for CircuitPython
MIT License
9 stars 18 forks source link

Add optional timezone offset for NTP.set_time() #10

Closed theelectricmayhem closed 4 years ago

theelectricmayhem commented 4 years ago

Updated NTP.set_time() to accept an optional tz_offset which adjusts the recorded time by that number of hours.

theelectricmayhem commented 4 years ago

Thanks! Hopefully Black cleaned up that formatting issue. Is there a particular target version of python used for Adafruit libraries I should be using with Black?

brentru commented 4 years ago

Seems like 3.5? Via the Action:

Run black --check --target-version=py35 .

theelectricmayhem commented 4 years ago

Seems like 3.5? Via the Action:

Run black --check --target-version=py35 .

Sweet. Thanks

theelectricmayhem commented 4 years ago

That's absolutely the right way to do it. Thanks! New PR

jepler commented 4 years ago

Aha I didn't see that the PR had already been merged. Looking forward to the next one and thanks @theelectricmayhem !