@fboes/aerofly-patterns
Advanced tools
Comparing version 2.3.0 to 2.3.1
# Changelog | ||
## 2.3.1 | ||
- Improved handling of Local Solar Time (LST) | ||
- Fixed time zone | ||
## 2.3.0 | ||
@@ -4,0 +9,0 @@ |
@@ -12,2 +12,3 @@ // @ts-check | ||
import { Formatter } from "./Formatter.js"; | ||
import { LocalSolarTime } from "./LocalSolarTime.js"; | ||
@@ -345,3 +346,3 @@ /** | ||
this.scenarios.forEach((s, index) => { | ||
const lst = Math.round((s.date.getUTCHours() + s.airport.lstOffset + 24) % 24); | ||
const lst = LocalSolarTime(s.date, s.airport.lstOffset); | ||
const clouds = | ||
@@ -356,4 +357,4 @@ s.weather?.clouds[0]?.cloudCoverCode !== "CLR" | ||
"#" + pad(index + 1), | ||
Formatter.getUtcCompleteDate(s.date), | ||
pad(padNumber(lst) + ":" + padNumber(s.date.getUTCMinutes()), 10, true), | ||
pad(lst.fullYear + "-" + padNumber(lst.month + 1) + "-" + padNumber(lst.date), 10, true), | ||
pad(padNumber(lst.hours) + ":" + padNumber(lst.minutes), 10, true), | ||
s.weather?.windSpeed === 0 | ||
@@ -360,0 +361,0 @@ ? pad("Calm", 12) |
@@ -54,3 +54,3 @@ // @ts-check | ||
eightOClock.setUTCMinutes(60 * (hours % 1)); | ||
eightOClock.setUTCHours(Math.floor(hours - this.offsetHours)); | ||
eightOClock.setUTCHours(Math.floor(hours + this.offsetHours)); | ||
@@ -57,0 +57,0 @@ while (eightOClock.valueOf() > startDate.valueOf()) { |
{ | ||
"name": "@fboes/aerofly-patterns", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Landegerät - Create landing pattern lessons for Aerofly FS 4.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
91115
27
2542