Writing current date to plist file using the command line
Solution 1:
In defaults, date is just an option, not the actual date command. You need to actually pass the date.
defaults write test.plist LatestDate "$(date +'%Y-%m-%d %H:%M:%S +0000')"
In defaults, date is just an option, not the actual date command. You need to actually pass the date.
defaults write test.plist LatestDate "$(date +'%Y-%m-%d %H:%M:%S +0000')"