@djangocfg/api 2.1.345 → 2.1.347

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -235,6 +235,12 @@ function installAuthOnClient(client2) {
235
235
  if (locale) request.headers.set("Accept-Language", locale);
236
236
  const apiKey = auth.getApiKey();
237
237
  if (apiKey) request.headers.set("X-API-Key", apiKey);
238
+ try {
239
+ const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
240
+ if (tz) request.headers.set("X-Timezone", tz);
241
+ } catch {
242
+ }
243
+ request.headers.set("X-Client-Time", (/* @__PURE__ */ new Date()).toISOString());
238
244
  return request;
239
245
  });
240
246
  client2.interceptors.response.use(async (response, request) => {