Local $Date$?

Jul 13, 2011 at 5:26 PM

Is there a keyword we can use to insert the local date/time?  Instead of $Date$ which inserts the UTC date/time?  I am wondering if this is possible since the $log$ has an option to use either the local or UTC date/time.

Jul 13, 2011 at 8:07 PM

This is a good question... it seems that you need to recompile the assembly.

In LogSubstPol.cs all keywords are defined:


Here you can change the line

 _Keywords.Add(new Keyword() { Key = "Date", Format = "{1:yyyy}/{1:MM}/{1:dd} {1:HH:mm:ss}" });


 _Keywords.Add(new Keyword() { Key = "Date", Format = "{0:yyyy}/{0:MM}/{0:dd} {0:HH:mm:ss}" });

or to whatever you want... (0 ist the local-time; 1 is the utc time; see http://logsubstpol.codeplex.com/