(now: Date = new Date())
| 262 | } |
| 263 | |
| 264 | export function isFreebuffDeploymentHours(now: Date = new Date()): boolean { |
| 265 | const eastern = getZonedParts(now, FREEBUFF_EASTERN_TIMEZONE) |
| 266 | const pacific = getZonedParts(now, FREEBUFF_PACIFIC_TIMEZONE) |
| 267 | return ( |
| 268 | eastern.hour * 60 + eastern.minute >= 9 * 60 && |
| 269 | pacific.hour * 60 + pacific.minute < 17 * 60 |
| 270 | ) |
| 271 | } |
| 272 | |
| 273 | export function isFreebuffModelAvailable( |
| 274 | id: string, |
no test coverage detected