[BUG] - get_plc_time does not account for timezones when converting to datetime #276
Open
3 tasks done
Labels
bug
Something isn't working
Pre-checks
Description
time received ignores the timezone of the plc. For example, the plc timezone is GMT + 3 and the time is set to 8pm, the code will receive 8pm instead of 5pm which is the gmt time. If I go to https://www.epochconverter.com and enter the
microseconds
field I get fromplc.get_plc_time().value['microseconds']
it shows 8pm in GMT and 11pm in local (the correct timestamp should show 5pm in GMT and 8pm in local timezone).Target PLC
Rockwell Automation/Allen-Bradley
Model: 1756-L83E/B
Firmware Revision: 33.11
Code Sample
Minimal reproduceable code sample
Additional context
The text was updated successfully, but these errors were encountered: