diff --git a/src/atom.ml b/src/atom.ml index f3f6aba..7534ae1 100644 --- a/src/atom.ml +++ b/src/atom.ml @@ -1,4 +1,5 @@ open Post +(* See https://validator.w3.org/feed/ *) let format_entry ~title ~date ~url ~contents ~author = String.concat "" @@ -11,7 +12,7 @@ let format_entry ~title ~date ~url ~contents ~author = |}; author; {| - |}; ISO8601.Permissive.string_of_datetime date;{| + |}; ISO8601.Permissive.string_of_datetimezone (date, 0.) ;{|
|}; contents; @@ -27,7 +28,7 @@ let format_feed ~title ~subtitle ~author ~feed_url ~site_url ~last_updated ~(ent |}; title; {| |}; feed_url; {| |}; subtitle; {| - |}; ISO8601.Permissive.string_of_datetime last_updated; {| + |}; ISO8601.Permissive.string_of_datetimezone (last_updated, 0.); {| |}] in