fix: Add UTC timezone option to settings page
Some checks failed
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
Some checks failed
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
- Added UTC as the first option in the timezone dropdown - Set default value to 'UTC' if settings.timezone is undefined - Fixes MUI warning about out-of-range value for select component 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -159,10 +159,11 @@ export default function SettingsPage() {
|
|||||||
<FormControl fullWidth>
|
<FormControl fullWidth>
|
||||||
<InputLabel>Timezone</InputLabel>
|
<InputLabel>Timezone</InputLabel>
|
||||||
<Select
|
<Select
|
||||||
value={settings.timezone}
|
value={settings.timezone || 'UTC'}
|
||||||
label="Timezone"
|
label="Timezone"
|
||||||
onChange={(e) => setSettings({ ...settings, timezone: e.target.value })}
|
onChange={(e) => setSettings({ ...settings, timezone: e.target.value })}
|
||||||
>
|
>
|
||||||
|
<MenuItem value="UTC">UTC (Universal)</MenuItem>
|
||||||
<MenuItem value="America/New_York">Eastern Time</MenuItem>
|
<MenuItem value="America/New_York">Eastern Time</MenuItem>
|
||||||
<MenuItem value="America/Chicago">Central Time</MenuItem>
|
<MenuItem value="America/Chicago">Central Time</MenuItem>
|
||||||
<MenuItem value="America/Denver">Mountain Time</MenuItem>
|
<MenuItem value="America/Denver">Mountain Time</MenuItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user