Skip to content

Commit

Permalink
Merge branch '2024.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Feb 25, 2025
2 parents ea6fab6 + 56b4ada commit 7fbf86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tine20/Tinebase/js/ux/form/PeriodPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Ext.ux.form.PeriodPicker = Ext.extend(Ext.form.Field, {
case 'week':
// NOTE: '+1' is to ensure we display the ISO8601 based week where weeks always start on monday!
const wkStart = this.startDate.add(Date.DAY, this.startDate.getDay() < 1 ? 1 : 0);
dateString = wkStart.getWeekOfYear() + ' - ' + this.startDate.format('Y');
dateString = wkStart.getWeekOfYear() + ' - ' + (wkStart.getWeekOfYear() === 1 ? this.value.until.format('Y') : this.startDate.format('Y'))
break;
case 'month':
dateString = Date.getShortMonthName(this.startDate.getMonth()) + ' ' + this.startDate.format('Y');
Expand Down

0 comments on commit 7fbf86b

Please sign in to comment.