mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-28 14:37:19 +02:00
12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
|
const ClientTimezone = (): void => {
|
||
|
const input: HTMLInputElement | null = document.querySelector(
|
||
|
"input[name='client_timezone']"
|
||
|
);
|
||
|
|
||
|
if (input) {
|
||
|
input.value = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default ClientTimezone;
|