fix: calendar date parsing, login credentials hint, flag z-index overlap
This commit is contained in:
@@ -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() };
|
||||
}
|
||||
|
||||
|
||||
@@ -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)',
|
||||
|
||||
Reference in New Issue
Block a user