···527527528528 // a valid timestamp can have optional ':' in zone specifier
529529 // remove that if it exists so we have a single format
530530- if ts[len(ts)-3] == ':' {
530530+ if len(ts) >= 3 && ts[len(ts)-3] == ':' {
531531 ts = ts[:len(ts)-3] + ts[len(ts)-2:]
532532 }
533533