This commit is contained in:
shoopea 2020-06-27 11:46:55 +02:00
parent 6a9d4da46d
commit 99bda82986

2
msg.go
View File

@ -630,7 +630,7 @@ func parseSubTypeMessageTimeAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWars
cwm.Year, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Year}"), 10, 64) cwm.Year, _ = strconv.ParseInt(r.ReplaceAllString(m.Text, "${Year}"), 10, 64)
cwm.Weather = r.ReplaceAllString(m.Text, "${Weather}") cwm.Weather = r.ReplaceAllString(m.Text, "${Weather}")
cwm.WeatherNext = r.ReplaceAllString(m.Text, "${WeatherNext}") cwm.WeatherNext = r.ReplaceAllString(m.Text, "${WeatherNext}")
log.Printf("parseSubTypeMessageTimeAck : %v", time.Now.UTC().Sub(cwm.RealTime)) log.Printf("parseSubTypeMessageTimeAck : drift %v", m.Date.Sub(cwm.RealTime))
return &cwm, nil return &cwm, nil
} }