(timeZone: string, now = new Date())
| 308 | }; |
| 309 | |
| 310 | export const getTodayTz = (timeZone: string, now = new Date()): Date => { |
| 311 | const timeZonedToday = now.toLocaleString('en', { timeZone }); |
| 312 | return new Date(timeZonedToday); |
| 313 | }; |
| 314 | |
| 315 | interface FormatDateProps { |
| 316 | value: Date | number | string; |
no outgoing calls
no test coverage detected