Sfoglia il codice sorgente

Return milliseconds for egg met/date met times

Andrew Swistak 6 anni fa
parent
commit
410e06c437
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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
 }