fix: calendar date parsing, login credentials hint, flag z-index overlap
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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