fix: calendar date parsing, login credentials hint, flag z-index overlap

This commit is contained in:
2026-06-28 22:33:55 -05:00
parent 6121c76d97
commit c2c2217028
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ export default function LoginPage() {
Log in
</button>
<p style={{ margin: '0.5rem 0 0', fontSize: '13px', color: '#777', textAlign: 'center' }}>
Demo accounts: <strong style={{ color: navy }}>admin</strong> / admin and <strong style={{ color: navy }}>user</strong> / user.
Contact reception for login credentials.
</p>
</form>
</main>
+2 -1
View File
@@ -27,7 +27,8 @@ const typeEmoji: Record<CalendarEvent['type'], string> = {
};
function formatMonthDay(dateStr: string) {
const d = new Date(dateStr + 'T00:00:00');
// Handle both ISO timestamp and date-only formats
const d = dateStr.includes('T') ? new Date(dateStr) : new Date(dateStr + 'T00:00:00');
return { month: d.toLocaleString('en-US', { month: 'short' }), day: d.getDate() };
}
+1 -1
View File
@@ -37,7 +37,7 @@ export default function LanguageSwitcher() {
onClick={toggleLanguage}
style={{
position: 'fixed',
top: '1rem',
top: '3.5rem',
right: '1rem',
zIndex: 1000,
background: 'rgba(255, 255, 255, 0.9)',