Open netzding opened 10 months ago
When testing https://github.com/mconfalonieri/external-dns-hetzner-webhook/ which is using this library I got the following error
level=error msg="Failed to get Records: error while parsing date '2020-04-07 01:52:42.30185114 +0000 UTC m=+554.428223568'"
To me it looks like a mismatch in number of fractional second digits: https://github.com/jobstoit/hetzner-dns-go/blob/2f5109d41f30d9142bd3dac4912ab4373272c257/dns/schema/hdns_time.go#L31C1-L31C89
Maybe switching the template to .9999 instead of .0000 like: hdns_time_layout_2 := "2006-01-02 15:04:05.999999999 -0700 UTC" might fix it. Can't test it myself right now.
hdns_time_layout_2 := "2006-01-02 15:04:05.999999999 -0700 UTC"
I'll look into it tank you for reporting
When testing https://github.com/mconfalonieri/external-dns-hetzner-webhook/ which is using this library I got the following error
To me it looks like a mismatch in number of fractional second digits: https://github.com/jobstoit/hetzner-dns-go/blob/2f5109d41f30d9142bd3dac4912ab4373272c257/dns/schema/hdns_time.go#L31C1-L31C89
Maybe switching the template to .9999 instead of .0000 like:
hdns_time_layout_2 := "2006-01-02 15:04:05.999999999 -0700 UTC"
might fix it. Can't test it myself right now.