I am struggling to parse a local datetime with timex.
The datetime string is like “26/10/2018 10:00” and I know it is CET or CEST. I managed to parse it with:
Timex.parse!(time_str, "{0D}/{0M}/{YYYY} {h24}:{m}")
I then receive the time in utc which is wrong. I could convert it to cet with
Timex.Timezone.convert("Europe/Berlin")
But then I get 12:00 CEST and not 10:00 CEST.
I tried adding the timezone to the datetime string, but I need the offset to parse with %Z, I dont know the offset.
Any ideas?