yjp 3 mesi fa
parent
commit
bd86528fd6
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      client/client_query_response.go
  2. 1 1
      client/table_row.go

+ 1 - 1
client/client_query_response.go

@@ -25,7 +25,7 @@ func FormEventInfo(info *response.EventInfo) *EventInfo {
 		Operation:  info.Operation,
 		Value:      info.Value,
 		CreatorID:  info.CreatorID,
-		CreateTime: time.Unix(0, info.CreateTimeUnix*1000).Local(),
+		CreateTime: time.UnixMicro(info.CreateTimeUnix).Local(),
 	}
 }
 

+ 1 - 1
client/table_row.go

@@ -282,7 +282,7 @@ func (tableRow *TableRow) FromDSPInfoData(infoData *response.InfoData) error {
 		typeStr := column.Value.Type
 
 		if typeStr == "Time" {
-			timeObj := time.Unix(0, int64(column.Value.GetUint64Value()*1000))
+			timeObj := time.UnixMicro(int64(column.Value.GetUint64Value()))
 			tableRow.row[column.Name] = timeObj
 		} else if typeStr == "string" {
 			tableRow.row[column.Name] = column.Value.GetStringValue()