@@ -17,12 +17,12 @@ import 'package:http/http.dart';
1717String now () {
1818 // remove 20 from 2022 so 2022 becomes 22
1919 String nowYear = DateTime .now ().year.toString ().substring (2 );
20- // if month is less than 10, add a 0 before the month
20+ // if the month is less than 10, add a 0 before the month
2121 String nowMonth = DateTime .now ().month < 10
2222 ? '0${DateTime .now ().month }'
2323 : DateTime .now ().month.toString ();
2424
25- // if day is less than 10, add a 0 before the month
25+ // if the day is less than 10, add a 0 before the day
2626 String nowDay = DateTime .now ().day < 10
2727 ? '0${DateTime .now ().day }'
2828 : DateTime .now ().day.toString ();
@@ -34,13 +34,13 @@ String sevenDaysAgo() {
3434 String sevenDaysAgoYear =
3535 DateTime .now ().subtract (Duration (days: 7 )).year.toString ().substring (2 );
3636
37- // if month is less than 10, add a 0 before the month
37+ // if the month is less than 10, add a 0 before the month
3838 String sevenDaysAgoMonth =
3939 DateTime .now ().subtract (Duration (days: 7 )).month < 10
4040 ? '0${DateTime .now ().subtract (Duration (days : 7 )).month }'
4141 : DateTime .now ().subtract (Duration (days: 7 )).month.toString ();
4242
43- // if day is less than 10, add a 0 before the month
43+ // if the day is less than 10, add a 0 before the day
4444 String sevenDaysAgoDay = DateTime .now ().subtract (Duration (days: 7 )).day < 10
4545 ? '0${DateTime .now ().subtract (Duration (days : 7 )).day }'
4646 : DateTime .now ().subtract (Duration (days: 7 )).day.toString ();
0 commit comments