chore(tooling): add mockup helper and backup fixes

This commit is contained in:
Felipe Coutinho
2026-03-25 00:30:46 +00:00
parent 1e0c93fb6c
commit da32b41bbc
6 changed files with 13 additions and 9 deletions

View File

@@ -75,7 +75,9 @@ function getItemDateKey(date: Date): string {
// Para "hoje" e "ontem", precisamos da data real de Brasília (UTC-3).
function getBrasiliaDateKey(date: Date): string {
const BRASILIA_OFFSET_MS = 3 * 60 * 60 * 1000;
return new Date(date.getTime() - BRASILIA_OFFSET_MS).toISOString().slice(0, 10);
return new Date(date.getTime() - BRASILIA_OFFSET_MS)
.toISOString()
.slice(0, 10);
}
function getGroupLabel(dateKey: string): string {