소스 검색

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
 }