'Created' Date is Blank

Topics: Errors
Dec 26, 2015 at 12:09 PM
For tasks created through this library, the 'Created' date is blank.
Coordinator
Dec 26, 2015 at 9:51 PM
This is not a bug, but looks a lot like one. The Microsoft documentation says that the ITaskRegistrationInfo::Date property is set when a task is registered. It appears that this is not the case and that that value, if never set, will always return 'null' which translates in the library to DateTime.MinValue. So, as a work around, in the next release, the Task class exposes a new method, GetLastRegistrationTime(), which will go through all known paths to try and determine when the task was last registered. Given that it may have to comb through the entire event log, this method could take a bunch of time. If task event logging is not enabled for the machine, this method won't give any more information than that which can be retrieved via the Date property.
Marked as answer by dahall on 12/30/2015 at 8:01 AM
Dec 27, 2015 at 1:13 AM
If the Create Date property is not set automatically upon initial registration, couldn't your library set it?
Coordinator
Dec 28, 2015 at 5:28 PM
That's exactly what I did in the 2.5.9 release.
Marked as answer by dahall on 12/30/2015 at 8:01 AM
Dec 28, 2015 at 5:45 PM
Confirmed. Works well now :o)