Skip to main content
Question

Incorrect date with mdls

  • September 5, 2019
  • 2 replies
  • 8 views

Forum|alt.badge.img+10

Hello,

I would like to know if you already had this type of issue please.

When I try to know the creation or modification date of any application on a 10.14.6 computer with the command line mdls, I always have the same date which is incorrect.

(sudo or not) mdls /Applications/(any.app) -name kMDItemDateAdded (or kMDItemContentModificationDate or kMDItemFSCreationDate or any)

Result : 1398-03-21 00:00:00 +0000

And since I have a policy that uninstall all Adobe applications that have not been used for more than 60 days, it becomes a little bit complicated to manage :)

Thank you for your help

2 replies

Forum|alt.badge.img+5
  • Contributor
  • December 10, 2019

FWIW I am seeing this but only on a few computers, but the 1398 year is returning with mdls.


Forum|alt.badge.img+10
  • Author
  • Valued Contributor
  • December 16, 2019

@robertliebsch I can confirm that I have the same behavior on few computers.
Is there another more reliable command to retrieve a modification date ?

In any case, thank you for your response.