mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:17:09 +00:00
Change the sunset / sunrise times reported via the tooltip.
The icon still uses the lower edge of the sun to calculate day / night, but the tooltip shows actual sunrise and sunset times.
This commit is contained in:
@@ -524,14 +524,14 @@ export default {
|
||||
const text = [];
|
||||
|
||||
try {
|
||||
text.push(`Sunset at\t${srss.ts0.prevDay.sunsetStart.toISOString().substr(0, 16)}Z (FSP)`);
|
||||
text.push(`Sunrise at\t${srss.ts0.sunriseEnd.toISOString().substr(0, 16)}Z (FSP)`);
|
||||
text.push(`Sunset at\t${srss.ts0.sunsetStart.toISOString().substr(0, 16)}Z (FSP)`);
|
||||
text.push(`Sunset at\t${srss.ts0.prevDay.sunset.toISOString().substr(0, 16)}Z (FSP)`);
|
||||
text.push(`Sunrise at\t${srss.ts0.sunrise.toISOString().substr(0, 16)}Z (FSP)`);
|
||||
text.push(`Sunset at\t${srss.ts0.sunset.toISOString().substr(0, 16)}Z (FSP)`);
|
||||
if (line.ts0.getUTCDate() != line.ts1.getUTCDate()) {
|
||||
text.push(`Sunrise at\t${srss.ts1.sunriseEnd.toISOString().substr(0, 16)}Z (LSP)`);
|
||||
text.push(`Sunset at\t${srss.ts1.sunsetStart.toISOString().substr(0, 16)}Z (LSP)`);
|
||||
text.push(`Sunrise at\t${srss.ts1.sunrise.toISOString().substr(0, 16)}Z (LSP)`);
|
||||
text.push(`Sunset at\t${srss.ts1.sunset.toISOString().substr(0, 16)}Z (LSP)`);
|
||||
}
|
||||
text.push(`Sunrise at\t${srss.ts1.nextDay.sunriseEnd.toISOString().substr(0, 16)}Z (LSP)`);
|
||||
text.push(`Sunrise at\t${srss.ts1.nextDay.sunrise.toISOString().substr(0, 16)}Z (LSP)`);
|
||||
} catch (err) {
|
||||
if (err instanceof RangeError) {
|
||||
text.push(srss.ts0.isDay ? "Polar day" : "Polar night");
|
||||
|
||||
Reference in New Issue
Block a user