Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Removed junk.

Mike Caocaa9da9166d3
diff --git a/src/components/hooks/useTimezone.ts b/src/components/hooks/useTimezone.ts
index d06562a2c..c74f513f5 100644
--- a/src/components/hooks/useTimezone.ts
+++ b/src/components/hooks/useTimezone.ts
@@ -14,14 +14,12 @@ export function useTimezone() {
};
const formatTimezoneDate = (date: string, pattern: string) => {
- return (
- formatInTimeZone(
- /^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{3})?Z$/.test(date)
- ? date
- : date.split(' ').join('T') + 'Z',
- timezone,
- pattern,
- ) + `, ${date}, ${pattern}, ${timezone}, ${formatInTimeZone(date, timezone, pattern)}`
+ return formatInTimeZone(
+ /^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{3})?Z$/.test(date)
+ ? date
+ : date.split(' ').join('T') + 'Z',
+ timezone,
+ pattern,
);
};