()
| 191 | * @returns {string} |
| 192 | */ |
| 193 | export function getCurrentUserDateString() { |
| 194 | const now = new Date(); |
| 195 | const parts = getTimeZoneParts(now, getUserTimezone()); |
| 196 | return [ |
| 197 | parts.year, |
| 198 | padNumber(parts.month), |
| 199 | padNumber(parts.day), |
| 200 | ].join("-"); |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * Format an ISO string for display in local time with configurable format |
no test coverage detected