Przeglądaj źródła

Return milliseconds for egg met/date met times

Andrew Swistak 6 lat temu
rodzic
commit
410e06c437
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      pokemon-parsing/gen7/parse.go

+ 2 - 1
pokemon-parsing/gen7/parse.go

@@ -205,5 +205,6 @@ func uint16ToDatetime(i uint32) int64 {
 	day := int((i >> 16) & 0xff)
 	date := time.Date(year, month, day, 0, 0, 0, 0, time.UTC)
 
-	return date.Unix()
+	// *1000 to return milliseconds
+	return date.Unix() * 1000
 }