feat: manage current date with datetime api. Closes #6

This commit is contained in:
2026-02-13 14:02:41 -03:00
parent 6826a4256d
commit a5329af7b3
6 changed files with 155 additions and 7 deletions
+5 -1
View File
@@ -7,6 +7,8 @@ interface AppState {
calendarMonthlyCalories: DailyTotalCalories[];
isSharedView: boolean;
sharedData: SharedDay | null;
userTimezone: string;
todayDateString: string;
}
export const appState: AppState = {
@@ -15,5 +17,7 @@ export const appState: AppState = {
searchResults: [],
calendarMonthlyCalories: [],
isSharedView: false,
sharedData: null
sharedData: null,
userTimezone: '',
todayDateString: ''
};