pyzk
pyzk copied to clipboard
Encoding Issue with Date Handling in pyzk Package
We are using the pyzk library for our ZKTeco integration and have encountered an issue with date encoding. The library is returning dates that are not valid, and we are receiving errors due to incorrect date formats.
Issue Description:
Problem: The pyzk library is producing invalid dates such as 2025 2 30 21 12 20 (February 30th, which is not a valid date). We are also seeing dates like 2000 1 1 0 0 0 which seems incorrect as well. Error Message: "Failed to connect to the device: day is out of range for month" Sample Output: 2000 1 1 0 0 0 2024 8 9 9 49 50 2025 2 30 21 12 20
Impact: This issue results in errors related to date handling, which affects the overall functionality and data integrity in our application.
We kindly request your assistance in addressing this encoding problem. If there is an updated version of the pyzk library or specific guidance on resolving this issue, please provide us with the necessary information.
Thank you for your support and prompt attention to this matter.