Parse datetimes in UTC

This commit is contained in:
Thomas Pelletier
2015-07-15 10:58:08 -07:00
parent 36e1197190
commit 9defd66d3c
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ func (p *tomlParser) parseRvalue() interface{} {
}
return val
case tokenDate:
val, err := time.Parse(time.RFC3339Nano, tok.val)
val, err := time.ParseInLocation(time.RFC3339Nano, tok.val, time.UTC)
if err != nil {
p.raiseError(tok, "%s", err)
}