Skip to content

Commit 12b97b7

Browse files
author
Quinten Van Damme
authored
Fix typo's
1 parent bf6ba27 commit 12b97b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/changes/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import 'package:http/http.dart';
1717
String 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

Comments
 (0)