I'm using an older script I found here to upload data to pvoutput. I am not a python expert but I have successfully converted it to python3 for use with Venus v2.7+ and i'm left with one last issue I can't seem to figure out. When I call datetime.now it returns the correct time in UTC, but I need local time. This wouldn't be a big deal but easiest packages to make this happen are not available, pytz and/or timedelta. To my knowledge these cannot be installed and survive upgrades/reboots?
I won't clog the next few pages with all of the code, I simply need to turn datetime which returns this in UTC:
2021-08-19 18:25:04.424956
Into local time (Eastern US) that obeys daylight savings time? I'm sure I'm missing a supported way to achieve this without writing a custom function to simply subtract hours between certain dates.
BR,
Edit, I'm currently on v2.80~13