Skip to content

Commit

Permalink
pycrate_mobile: Fix TimeZoneTime encode
Browse files Browse the repository at this point in the history
This should fix the typo in the encode function that lead to an
exception, when using the `struct_time`.

Signed-off-by: Eduard Vlad <[email protected]>
  • Loading branch information
Jojeker committed Jan 4, 2025
1 parent 8acbc8b commit 021d99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycrate_mobile/TS24008_IE.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ def encode(self, ts, tz=0.0):
self['Hour'].encode( ts.tm_hour )
self['Min'].encode( ts.tm_min )
self['Sec'].encode( ts.tm_sec )
self['TZ'].encode( tz )
self['TimeZone'].encode( tz )

def decode(self):
"""decode the value of the TimeZoneTime into a Python struct_time and
Expand Down

0 comments on commit 021d99d

Please sign in to comment.