Fixed? a key bug related to pulling the right day
This commit is contained in:
@@ -110,8 +110,7 @@ class DatabaseAPI extends ChangeNotifier {
|
||||
|
||||
getOne({required String date}) async {
|
||||
int offset =
|
||||
DateTime.parse(date).difference(DateTime.parse("2023-01-01")).inDays +
|
||||
1;
|
||||
DateTime.parse(date).difference(DateTime.parse("2023-01-01")).inDays;
|
||||
|
||||
List<Document> response = await getEntries(
|
||||
limit: 1,
|
||||
|
||||
Reference in New Issue
Block a user