|
@@ -240,12 +240,12 @@ const WeekCalendar = memo((props: { isFastSleep: boolean }) => {
|
|
|
function getWeekDuration() {
|
|
function getWeekDuration() {
|
|
|
if (global.language == 'en') {
|
|
if (global.language == 'en') {
|
|
|
if (!props.isFastSleep) {
|
|
if (!props.isFastSleep) {
|
|
|
- return `${t('feature.common.day_of_week_full.mon')}, ${getDate(calendarData.start)} - ${t('feature.common.day_of_week_full.sun')}, ${getDate(calendarData.end - 1)}`
|
|
|
|
|
|
|
+ return `${t('feature.common.day_of_week_full.sun')}, ${getDate(calendarData.start)} - ${t('feature.common.day_of_week_full.sat')}, ${getDate(calendarData.end - 1)}`
|
|
|
}
|
|
}
|
|
|
return `${t('feature.common.day_of_week_full.sun')} ${t('feature.common.time_desc.afternoon')}, ${getDate(calendarData.start)} - ${t('feature.common.day_of_week_full.sun')} ${t('feature.common.time_desc.morning')}, ${getDate(calendarData.end)}`
|
|
return `${t('feature.common.day_of_week_full.sun')} ${t('feature.common.time_desc.afternoon')}, ${getDate(calendarData.start)} - ${t('feature.common.day_of_week_full.sun')} ${t('feature.common.time_desc.morning')}, ${getDate(calendarData.end)}`
|
|
|
}
|
|
}
|
|
|
if (!props.isFastSleep) {
|
|
if (!props.isFastSleep) {
|
|
|
- return `${getDate(calendarData.start)} ${t('feature.common.day_of_week_full.mon')} - ${getDate(calendarData.end - 1)} ${t('feature.common.day_of_week_full.sun')}`
|
|
|
|
|
|
|
+ return `${getDate(calendarData.start)} ${t('feature.common.day_of_week_full.sun')} - ${getDate(calendarData.end - 1)} ${t('feature.common.day_of_week_full.sat')}`
|
|
|
}
|
|
}
|
|
|
return `${getDate(calendarData.start)} ${t('feature.common.day_of_week_full.sun')}${t('feature.common.time_desc.afternoon')} - ${getDate(calendarData.end)} ${t('feature.common.day_of_week_full.sun')}${t('feature.common.time_desc.morning')}`
|
|
return `${getDate(calendarData.start)} ${t('feature.common.day_of_week_full.sun')}${t('feature.common.time_desc.afternoon')} - ${getDate(calendarData.end)} ${t('feature.common.day_of_week_full.sun')}${t('feature.common.time_desc.morning')}`
|
|
|
}
|
|
}
|