(date, timeZone)
| 11 | const LOCAL_TZ_OFFSET = '+08:00'; |
| 12 | const LOCAL_TZ_OFFSET_MINUTES = 8 * 60; |
| 13 | const formatDateInTimeZone = (date, timeZone) => |
| 14 | new Intl.DateTimeFormat('en-CA', { timeZone }).format(date); |
| 15 | const formatDateTimeWithOffset = (date, offsetMinutes) => { |
| 16 | const pad = (value) => String(value).padStart(2, '0'); |
| 17 | const adjusted = new Date(date.getTime() + offsetMinutes * 60 * 1000); |
no outgoing calls
no test coverage detected