(timeZone: string, now = new Date())
| 282 | }; |
| 283 | |
| 284 | export const getTodayTz = (timeZone: string, now = new Date()): Date => { |
| 285 | const timeZonedToday = now.toLocaleString('en', { timeZone }); |
| 286 | return new Date(timeZonedToday); |
| 287 | }; |
| 288 | |
| 289 | interface FormatDateProps { |
| 290 | value: Date | number | string; |
no outgoing calls
no test coverage detected