diff options
author | L. Guruprasad <lgp171188@gmail.com> | 2016-11-16 21:30:06 +0100 |
---|---|---|
committer | L. Guruprasad <lgp171188@gmail.com> | 2016-11-16 21:30:06 +0100 |
commit | 11e8cf6c740bdc558d21478f74cfab3aba6f9264 (patch) | |
tree | b4ad69f3d875930b6a2d130085b635ad7d6ebe8e | |
parent | freestyle_optium: ignore β-ketones results from dumps. (diff) | |
download | glucometerutils-11e8cf6c740bdc558d21478f74cfab3aba6f9264.tar glucometerutils-11e8cf6c740bdc558d21478f74cfab3aba6f9264.tar.gz glucometerutils-11e8cf6c740bdc558d21478f74cfab3aba6f9264.tar.bz2 glucometerutils-11e8cf6c740bdc558d21478f74cfab3aba6f9264.tar.lz glucometerutils-11e8cf6c740bdc558d21478f74cfab3aba6f9264.tar.xz glucometerutils-11e8cf6c740bdc558d21478f74cfab3aba6f9264.tar.zst glucometerutils-11e8cf6c740bdc558d21478f74cfab3aba6f9264.zip |
-rw-r--r-- | glucometerutils/drivers/otultra2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/drivers/otultra2.py b/glucometerutils/drivers/otultra2.py index 9bb52d1..9647947 100644 --- a/glucometerutils/drivers/otultra2.py +++ b/glucometerutils/drivers/otultra2.py @@ -115,8 +115,8 @@ def _parse_datetime(response): raise exceptions.InvalidResponse(response) date, time = match.groups() - month, day, year = map(date.split('/'), int) - hour, minute, second = map(time.split(':'), int) + month, day, year = map(int, date.split('/')) + hour, minute, second = map(int, time.split(':')) # Yes, OneTouch2's firmware is not Y2K safe. return datetime.datetime(2000 + year, month, day, hour, minute, second) |