Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix dates thanks tomleb

Cette révision appartient à :
PantsuDev 2017-07-03 15:10:21 +10:00
Parent 8915485c7d
révision a4f6ced19c

Voir le fichier

@ -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)