Clearly, the API Keyboard Maestro ([NSFileManager attributesOfItemAtPath:error:]
) uses does not deal with returning sub-second times.
It is possible the API does allow setting then dates with sub-second times, which is why you see that working.
Sorry, you’ll need to find an alternative way to get the modification date with sub-second accuracy.