Skip to content

Commit 284166b

Browse files
committed
fmt
1 parent 557b324 commit 284166b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@
352352
function getSolarTime(date, lng) {
353353
// Approximation: every degree of longitude corresponds to 4 minutes.
354354
const offsetMinutes = lng * 4;
355-
const solarDate = new Date(date.getTime() + offsetMinutes * 60000);
355+
const solarDate = new Date(
356+
date.getTime() + offsetMinutes * 60000,
357+
);
356358
return solarDate.toLocaleTimeString("en-US", {
357359
hour: "2-digit",
358360
minute: "2-digit",
@@ -419,7 +421,9 @@
419421
// Append a line for Solar Time using the marker's longitude
420422
const solarTimeLine = `<div class="time-entry">
421423
<div class="timezone-name">Solar Time</div>
422-
<div class="time-value">${getSolarTime(now, roundedLng)}</div>
424+
<div class="time-value">${
425+
getSolarTime(now, roundedLng)
426+
}</div>
423427
</div>`;
424428
timeDiv.innerHTML = timeStrings.join("") + solarTimeLine;
425429
};

0 commit comments

Comments
 (0)