openclimatefix / uk-pv-forecast-blend

Service to blend forecast together
0 stars 0 forks source link

timezone aware method #29

Closed aryanbhosale closed 3 months ago

aryanbhosale commented 3 months ago

Pull Request

Description

the datetime.utcnow() method is considered deprecated in modern Python versions, and it's recommended to use the more explicit datetime.now(tz=datetime.timezone.utc) instead. The utcnow() method is still functional, but it's considered less clear and less timezone-aware than the alternative. I have thus replaced the deprecated method with the newer one

Fixes #

Replaced the deprecated utcnow() method with the newer one

Checklist:

aryanbhosale commented 3 months ago

Hi @peterdudfield , could you please review this?