Skip to content

Commit

Permalink
fix calendar selector (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Predidit committed Oct 1, 2024
1 parent 872372f commit 90bebb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/pages/timeline/timeline_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ class _TimelinePageState extends State<TimelinePage>
DateTime generateDateTime(int year, String season) {
switch (season) {
case '冬':
return DateTime(year, 1, 2);
return DateTime(year, 1, 1);
case '春':
return DateTime(year, 4, 2);
return DateTime(year, 4, 1);
case '夏':
return DateTime(year, 7, 2);
return DateTime(year, 7, 1);
case '秋':
return DateTime(year, 10, 2);
return DateTime(year, 10, 1);
default:
return DateTime.now();
}
Expand Down

0 comments on commit 90bebb9

Please sign in to comment.