mirror of
https://github.com/mue/mue.git
synced 2026-07-16 13:34:03 +02:00
fix: favourite button, optimise widgets and remove dependency
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export default function nth(d) {
|
||||
export function nth(d) {
|
||||
if (d > 3 && d < 21) {
|
||||
return d + 'th';
|
||||
}
|
||||
@@ -14,3 +14,7 @@ export default function nth(d) {
|
||||
return d + 'th';
|
||||
}
|
||||
}
|
||||
|
||||
export function convertTimezone(date, tz) {
|
||||
return new Date((typeof date === 'string' ? new Date(date) : date).toLocaleString('en-US', { timeZone: tz }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user