fixes related to automation and celery schedules
This commit is contained in:
@@ -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/'));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user