fixes related to automation and celery schedules

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-18 12:22:27 +00:00
parent 3a65fb919a
commit 879ef6ff06
9 changed files with 358 additions and 27 deletions

View File

@@ -419,4 +419,20 @@ export const automationService = {
}> => {
return fetchAPI(buildUrl('/production_stats/', { site_id: siteId }));
},
/**
* Get server time (UTC) used for all automation scheduling
*/
getServerTime: async (): Promise<{
server_time: string;
server_time_formatted: string;
server_time_date: string;
server_time_time: string;
timezone: string;
celery_timezone: string;
use_tz: boolean;
note: string;
}> => {
return fetchAPI(buildUrl('/server_time/'));
},
};