mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Pass time zone to national days API
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user