Incorrect date with mdls

glpi-ios
Contributor III

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 2

robertliebsch
Contributor

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

glpi-ios
Contributor III

@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.