From 952f2e5b2256a4535c43bebccef099dc91a3c0db Mon Sep 17 00:00:00 2001
From: Andrew Titmuss <iandrewt@icloud.com>
Date: Fri, 13 Oct 2017 14:24:56 +1100
Subject: [PATCH] fix Install Date for macOS

---
 neofetch | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/neofetch b/neofetch
index 0ce2959d..2614c123 100755
--- a/neofetch
+++ b/neofetch
@@ -2254,7 +2254,13 @@ get_install_date() {
             return
         ;;
 
-        *) install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')" ;;
+        *)
+            if [[ "$os" == "Mac OS X" ]]; then
+                install_date="$(ls -dlctuT "$install_file" | awk '{printf $9 " " $6 " " $7 " " $8}')"
+            else
+                install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " " $7 " " $8}')"
+            fi
+        ;;
     esac
 
     install_date="${install_date//-/ }"