瀏覽代碼

Return milliseconds for egg met/date met times

Andrew Swistak 6 年之前
父節點
當前提交
410e06c437
共有 1 個文件被更改,包括 2 次插入1 次删除
  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
 }