yugo
yugo copied to clipboard
Offset in date parsing seems the wrong way around
I'm using yugo for something where the date of a message is fairly important and it seems to be off. I think you have the offset in Parser.rfc5322_to_datetime/1 the wrong way around. In the test you for example have "Wed, 17 Jul 1996 02:23:25 -0700 (PDT)" and shouldn't that be ~U[1996-07-17 09:23:25Z] in UTC after parsing?
You’re right, good catch! Do you wanna send in a PR?
Sure!