Skip to content

Commit 52355b9

Browse files
committed
Future case
1 parent 90ad72c commit 52355b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ private string GetDiffTimeString(DateTime fileDateTime)
9696
{
9797
DateTime now = DateTime.Now;
9898
TimeSpan difference = now - fileDateTime;
99+
100+
if (fileDateTime > now)
101+
return "In the future";
99102

100103
if (difference.TotalDays < 1)
101104
return "Today";

0 commit comments

Comments
 (0)