Skip to content

Commit

Permalink
fix: week days not defaulting to english language
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneSchroederLJ committed Feb 26, 2025
1 parent 4a184a0 commit bb44639
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function CalendarWeekSummary<TType extends SummaryType>({ supplies, cw, s
spacing={0.25}
sx={{ backgroundColor: '#f5f5f5' }}
>
<Typography variant="body2"> {date.toLocaleDateString(undefined, { weekday: 'long' })} </Typography>
<Typography variant="body2"> {date.toLocaleDateString('en-GB', { weekday: 'long' })} </Typography>
<Typography variant="body2" color="#777"> {date.toLocaleDateString()} </Typography>
</Stack>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export const DemandCategoryModal = ({ open, mode, onClose, onSave, demand, deman
title={`Material Demand ${
temporaryDemand?.day
? ' on ' +
new Date(temporaryDemand?.day).toLocaleDateString(undefined, {
new Date(temporaryDemand?.day).toLocaleDateString('en-GB', {
weekday: 'long',
day: '2-digit',
month: '2-digit',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export const PlannedProductionModal = ({ open, mode, onClose, onSave, production
title={`Planned Production ${
temporaryProduction?.estimatedTimeOfCompletion
? ' on ' +
new Date(temporaryProduction?.estimatedTimeOfCompletion).toLocaleDateString(undefined, {
new Date(temporaryProduction?.estimatedTimeOfCompletion).toLocaleDateString('en-GB', {
weekday: 'long',
day: '2-digit',
month: '2-digit',
Expand Down

0 comments on commit bb44639

Please sign in to comment.