(date)
| 14 | ==============================================================================*/ |
| 15 | |
| 16 | export function formatDate(date) { |
| 17 | if (!date) { |
| 18 | return ''; |
| 19 | } |
| 20 | // Turn things like "GMT-0700 (PDT)" into just "PDT". |
| 21 | return date.toString().replace(/GMT-\d+ \(([^)]+)\)/, '$1'); |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Returns CSS color that will contrast against background. |
no test coverage detected
searching dependent graphs…