版本号:v4.9.2
抛出如下异常:
panic: time: missing Location in call to Date
goroutine 16 [running]:
time.Date(0xc000248431?, 0xc000248420?, 0x15da461?, 0x347cd264?, 0x3b2?, 0x3b2?, 0x400?, 0x0?)
/usr/local/go/src/time/time.go:1469 +0x4c9
time.parse({0x15da451, 0x13}, {0xc000248420, 0x13}, 0x0?, 0x0)
/usr/local/go/src/time/format.go:1398 +0x21cc
time.ParseInLocation({0x15da451, 0x13}, {0xc000248420, 0x13}, 0x49233e?)
/usr/local/go/src/time/format.go:1029 +0xeb
PrometheusAlert/models/elastic.timeConvert({0xc000248420, 0x13})
/go/src/github.com/feiyu563/PrometheusAlert/models/elastic/elasticsearch.go:126 +0x51
PrometheusAlert/models/elastic.Insert({0xc0000d0300, 0x16}, {{0xc0002d6f10, 0xe}, {0xc0002d6ef0, 0x6}, {0xc0002d6f40, 0xd}, {0x0, 0x0}, ...})
/go/src/github.com/feiyu563/PrometheusAlert/models/elastic/elasticsearch.go:92 +0x6f
created by PrometheusAlert/controllers.SetRecord
/go/src/github.com/feiyu563/PrometheusAlert/controllers/prometheusalert.go:392 +0xc3b
版本号:v4.9.2
抛出如下异常:
panic: time: missing Location in call to Date
goroutine 16 [running]:
time.Date(0xc000248431?, 0xc000248420?, 0x15da461?, 0x347cd264?, 0x3b2?, 0x3b2?, 0x400?, 0x0?)
/usr/local/go/src/time/time.go:1469 +0x4c9
time.parse({0x15da451, 0x13}, {0xc000248420, 0x13}, 0x0?, 0x0)
/usr/local/go/src/time/format.go:1398 +0x21cc
time.ParseInLocation({0x15da451, 0x13}, {0xc000248420, 0x13}, 0x49233e?)
/usr/local/go/src/time/format.go:1029 +0xeb
PrometheusAlert/models/elastic.timeConvert({0xc000248420, 0x13})
/go/src/github.com/feiyu563/PrometheusAlert/models/elastic/elasticsearch.go:126 +0x51
PrometheusAlert/models/elastic.Insert({0xc0000d0300, 0x16}, {{0xc0002d6f10, 0xe}, {0xc0002d6ef0, 0x6}, {0xc0002d6f40, 0xd}, {0x0, 0x0}, ...})
/go/src/github.com/feiyu563/PrometheusAlert/models/elastic/elasticsearch.go:92 +0x6f
created by PrometheusAlert/controllers.SetRecord
/go/src/github.com/feiyu563/PrometheusAlert/controllers/prometheusalert.go:392 +0xc3b