Fix dates thanks tomleb
Cette révision appartient à :
Parent
8915485c7d
révision
a4f6ced19c
|
@ -255,7 +255,7 @@ func (t *TorrentJSON) ToTorrent() Torrent {
|
|||
}
|
||||
// Need to add +00:00 at the end because ES doesn't store it by default
|
||||
dateFixed := t.Date
|
||||
if t.Date[len(t.Date)-1] != 'Z' {
|
||||
if t.Date[len(t.Date)-6] != '+' {
|
||||
dateFixed += "Z"
|
||||
}
|
||||
date, err := time.Parse(time.RFC3339, dateFixed)
|
||||
|
|
Référencer dans un nouveau ticket