mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
Include current year in quick date picker
This commit is contained in:
parent
374ca7d356
commit
2c29697b55
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class QuickDatePicker extends HookWidget {
|
||||||
return _monthListTile("Last 9 months", 9);
|
return _monthListTile("Last 9 months", 9);
|
||||||
} else {
|
} else {
|
||||||
final now = DateTime.now();
|
final now = DateTime.now();
|
||||||
final years = index - 3;
|
final years = index - 4;
|
||||||
final year = now.year - years;
|
final year = now.year - years;
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text("In $year"),
|
title: Text("In $year"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue