Skip to content

Commit

Permalink
Improved time parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
SlyMarbo committed Jul 30, 2013
1 parent 8a2b75a commit 4a2d232
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions time.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package rss

import (
"strings"
"time"
)

Expand All @@ -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
Expand Down

0 comments on commit 4a2d232

Please sign in to comment.