Skip to content

Commit

Permalink
🐛 Re-did Fix issue showing wrong VPlan Dates on Fridays/Weekends
Browse files Browse the repository at this point in the history
376e514 seems to got lost during merging
  • Loading branch information
strifel committed Nov 1, 2020
1 parent 77365af commit 79d117d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/api/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ class _APIRequests {
if (day == 0) {
days = 0;
} else if (day == 1) {
days = DateTime.now().weekday > 5 ? 1 + (8-DateTime.now().weekday) : 1;
days = DateTime.now().weekday >= 5 ? 8 - DateTime.now().weekday : 1;
} else {
days = DateTime.now().weekday > 5 ? 2 + (8-DateTime.now().weekday) : 2;
days = DateTime.now().weekday == 4 ? 4 : DateTime.now().weekday >= 5 ? 9 - DateTime.now().weekday : 2;
}
// Calculating today at 8o clock
DateTime now = new DateTime.now();
Expand Down

0 comments on commit 79d117d

Please sign in to comment.