Fix Julian weekday display in mobile mode

This commit is contained in:
Quantum 2023-04-23 20:27:52 -04:00
parent 68a35cbf0f
commit 63a01eab62
2 changed files with 3 additions and 3 deletions

View file

@ -55,8 +55,8 @@
href="https://en.wikipedia.org/wiki/Gregorian_calendar">Gregorian
calendar</a>, forms the basis of civil calendar in most countries.</p>
<p>Julius Caesar (with aid of Sosigenes of Alexandria) introduced this calendar to replace the earlier Roman
calendar, which required manual addition of leap months to keep it in synchrony with the
seasons.Unfortunately, it had leap days every four years without question, resulting in the average year
calendar, which required manual addition of leap months to keep it in synchrony with the seasons.
Unfortunately, it had leap days every four years without question, resulting in the average year
having 365.25 days. However, the actual tropical year is roughly 365.2422 days, resulting in the Julian
calendar gaining a day every 129 years. This means that seasons drift, starting earlier and earlier in
the year.</p>

View file

@ -41,7 +41,7 @@ function Day({year, month, day, todayJDN}: DateProps & { todayJDN: number }): JS
const jdn = julianJDN(year, month, day);
return <div className={`Day NormalDay ${jdn === todayJDN ? 'Day-today' : ''}`}>
<div className="Day-name">{day}</div>
<div className="Day-weekday">{weekdayNames[(day - 1) % 7]}</div>
<div className="Day-weekday">{weekdayNames[(jdn + 1) % 7]}</div>
<DayDetail jdn={jdn}/>
</div>;
}