yugo icon indicating copy to clipboard operation
yugo copied to clipboard

Offset in date parsing seems the wrong way around

Open optikfluffel opened this issue 10 months ago • 2 comments

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?

optikfluffel avatar May 29 '25 11:05 optikfluffel

You’re right, good catch! Do you wanna send in a PR?

Flying-Toast avatar May 29 '25 13:05 Flying-Toast

Sure!

optikfluffel avatar May 29 '25 17:05 optikfluffel