Pass time zone to national days API

This commit is contained in:
2024-12-22 03:44:00 +00:00
parent b27ccc1f49
commit d9a25a9832

View File

@@ -15,7 +15,7 @@ export const useCalendarStore = defineStore('calendar', {
return response.data;
},
async getNationalDays(): Promise<NationalDayEntry[]> {
const response = await axios.get<NationalDayEntry[]>(Environment.getUrlPrefix() + `:8081/api/calendar/national-days/today`);
const response = await axios.get<NationalDayEntry[]>(Environment.getUrlPrefix() + `:8081/api/calendar/national-days/today?timezone=${Intl.DateTimeFormat().resolvedOptions().timeZone}`);
return response.data;
}