origin/main #1

Merged
francescoalbano merged 8 commits from origin/main into main 2025-11-12 15:49:52 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 92a97edd3c - Show all commits

View File

@ -113,7 +113,7 @@ export class TripsComponent implements OnInit {
const tripDays: Partial<TripDay>[] = [];
const current = new Date(from);
while (current <= to) {
const year = current.getUTCFullYear();
const year = current.getFullYear();
const month = String(current.getMonth() + 1).padStart(2, '0');
const day = String(current.getDate()).padStart(2, '0');
const label = `${day} ${months[current.getMonth()]}`;

View File

@ -36,7 +36,7 @@ export class TripCreateDayModalComponent {
}
formatDateWithoutTimezone(date: Date) {
const year = date.getUTCFullYear();
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`;