fix: clock hot reload

This commit is contained in:
David Ralph
2021-08-18 14:48:52 +01:00
parent fb15a1037b
commit a91d5843b9
5 changed files with 12 additions and 11 deletions

View File

@@ -13,8 +13,8 @@ export function nth(d) {
default:
return d + 'th';
}
}
};
export function convertTimezone(date, tz) {
return new Date((typeof date === 'string' ? new Date(date) : date).toLocaleString('en-US', { timeZone: tz }));
}
};