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
+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)',