MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / EnsureTimestamps

Method EnsureTimestamps

pkg/telemetry/telemetrydata/telemetrydata.go:218–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216}
217
218func (t *TEvent) EnsureTimestamps() {
219 if t.Ts == 0 {
220 t.Ts = time.Now().UnixMilli()
221 }
222 gtime := time.UnixMilli(t.Ts)
223 t.TsLocal = utilfn.ConvertToWallClockPT(gtime).Format(time.RFC3339)
224}
225
226func (t *TEvent) UserSetProps() *TEventUserProps {
227 if t.Props.UserSet == nil {

Callers 1

RecordTEventFunction · 0.80

Calls 1

ConvertToWallClockPTFunction · 0.92

Tested by

no test coverage detected