Cumulus / Syndic

RSS and Atom feed parsing
MIT License
34 stars 13 forks source link

bug: offset from UTC is wrongly parsed #59

Closed pwbs closed 9 years ago

pwbs commented 9 years ago
# open Syndic_date ;;
# of_rfc822 "Wed, 21 Oct 2015 06:00:13 +0200" |> to_rfc3339;;
- : bytes = "2015-10-21T08:00:13+00:00" 
# of_rfc822 "Wed, 21 Oct 2015 06:00:13 +0200" |> to_rfc822;;
- : bytes = "Wed, 21 Oct 2015 08:00:13 +0000"  
# of_rfc3339 "2015-10-21T06:00:13+02:00" |> to_rfc3339;;
- : bytes = "2015-10-21T08:00:13+00:00"

is wrong. Please do tell me if it's me who's going insane.