From 4a2d23229e9e4cde6dc9ed15f34e217f1d256c88 Mon Sep 17 00:00:00 2001 From: Jamie Hall Date: Tue, 30 Jul 2013 17:17:45 +0100 Subject: [PATCH] Improved time parsing --- time.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/time.go b/time.go index ef18d1b..27bc9ed 100644 --- a/time.go +++ b/time.go @@ -1,6 +1,7 @@ package rss import ( + "strings" "time" ) @@ -19,6 +20,8 @@ func parseTime(s string) (time.Time, error) { time.RFC3339, time.RFC3339Nano, } + + s = strings.TrimSpace(s) var e error var t time.Time