File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ func HostID(key string, id peer.ID) zapcore.Field {
45
45
46
46
func (id hostID ) String () string { return peer .Encode (peer .ID (id )) }
47
47
48
- // Time - Waku uses Microsecond Unix Time
48
+ // Time - Waku uses Nanosecond Unix Time
49
49
type timestamp int64
50
50
51
51
// Time creates a field for Waku time value
@@ -54,7 +54,7 @@ func Time(key string, time int64) zapcore.Field {
54
54
}
55
55
56
56
func (t timestamp ) String () string {
57
- return time .UnixMicro ( int64 (t )).Format (time .RFC3339 )
57
+ return time .Unix ( 0 , int64 (t )).Format (time .RFC3339 )
58
58
}
59
59
60
60
// History Query Filters
@@ -96,8 +96,8 @@ func (pi *pagingInfo) MarshalLogObject(encoder zapcore.ObjectEncoder) error {
96
96
97
97
func (i * index ) MarshalLogObject (encoder zapcore.ObjectEncoder ) error {
98
98
encoder .AddBinary ("digest" , i .Digest )
99
- encoder .AddTime ("sent" , time .UnixMicro ( i .SenderTime ))
100
- encoder .AddTime ("received" , time .UnixMicro ( i .ReceiverTime ))
99
+ encoder .AddTime ("sent" , time .Unix ( 0 , i .SenderTime ))
100
+ encoder .AddTime ("received" , time .Unix ( 0 , i .ReceiverTime ))
101
101
return nil
102
102
}
103
103
You can’t perform that action at this time.
0 commit comments