Skip to content

Commit 6dcd499

Browse files
committed
chore: treat 1980 as faulty date
instead of 1970, when dealing with file added date etc
1 parent 2d4b912 commit 6dcd499

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/core/extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ extension FileUtils on File {
587587
}
588588
}
589589

590-
final _minimumDateMicro = DateTime(1970).microsecondsSinceEpoch + 1;
590+
final _minimumDateMicro = DateTime(1980).microsecondsSinceEpoch + 1;
591591

592592
extension FileStatsUtils on FileStat {
593593
DateTime get creationDate {

lib/ui/pages/home_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extension _MapUtilsHomePage<K, V> on Map<K, V> {
4646
}
4747
}
4848

49-
final int _lowestDateMSSEToDisplay = DateTime(1970).millisecondsSinceEpoch + 1;
49+
final int _lowestDateMSSEToDisplay = DateTime(1980).millisecondsSinceEpoch + 1;
5050

5151
class HomePage extends StatefulWidget with NamidaRouteWidget {
5252
@override

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: namida
22
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
33
publish_to: "none"
4-
version: 4.8.23-beta+241219171
4+
version: 4.8.24-beta+241219171
55

66
environment:
77
sdk: ">=3.4.0 <4.0.0"

0 commit comments

Comments
 (0)