--- import Clouds from "./background/Clouds.astro"; import Stars from "./background/Stars.astro"; import Moon from "./background/Moon.astro"; import Sun from "./background/Sun.astro"; import { blog } from "@/config"; const date = "overrideHour" in blog && typeof blog.overrideHour === "number" ? new Date(0, 0, 0, blog.overrideHour) : new Date( Astro.cookies.get("timezone")?.value ?? Astro.request.headers.get("Date") ?? Astro.request.headers.get("date") ?? // idk if it cares about capitals so Both Date.now(), ); const accurateHours = date.getHours() + date.getMinutes() / 60 + date.getSeconds() / 60 ** 2; const daytime = accurateHours > 6 && accurateHours < 18; ---