MHKiT-Python provides the marine renewable energy (MRE) community tools for data processing, visualization, quality control, resource assessment, and device performance.
Line 91 and 92 in cdip.py is converting POSIX time to a local time and then setting, instead of converting, the timezone to UTC. Instead, it should either convert the POSIX time to UTC by using utcfromtimestamp() instead of fromtimestamp(), or convert the local time to UTC by using .astimezone(pytz.timezone('UTC')) instead of .replace(tzinfo=timezone.utc)
Line 91 and 92 in cdip.py is converting POSIX time to a local time and then setting, instead of converting, the timezone to UTC. Instead, it should either convert the POSIX time to UTC by using utcfromtimestamp() instead of fromtimestamp(), or convert the local time to UTC by using .astimezone(pytz.timezone('UTC')) instead of .replace(tzinfo=timezone.utc)