(date: Date)
| 2 | const lru = new LRU(1000); // Cache up to 1000 entries |
| 3 | |
| 4 | export function resetTimezone(date: Date) { |
| 5 | let TIMEZONE: string = ''; |
| 6 | const offsetInMinutes = date.getTimezoneOffset(); |
| 7 | const _hourOffset: number = Math.floor(-offsetInMinutes / 60); |
| 8 | const _minuteOffset: number = Math.abs(offsetInMinutes % 60); |
| 9 | |
| 10 | TIMEZONE += _hourOffset >= 0 ? '+' : '-'; |
| 11 | TIMEZONE += `${String(Math.abs(_hourOffset)).padStart(2, '0')}${String(_minuteOffset).padStart(2, '0')}`; |
| 12 | |
| 13 | return TIMEZONE; |
| 14 | } |
| 15 | |
| 16 | const MONTHS: Record<string, string> = { |
| 17 | '01': 'Jan', |
no outgoing calls
no test coverage detected
searching dependent graphs…