From external API I'm getting this date as string '2021-03-31 21:00:00'. API returns it as UTC.
The goal is to add in summer 2 hours and in winter 3 hours.
1.
Is there some library that solves this problem?
- if not, then I should probably calculate myself if today is a day in DST and add 3 hours and if not add 2? if so how can i do it