Commit 80d048e 1 parent c9f725c commit 80d048e Copy full SHA for 80d048e
File tree 1 file changed +8
-0
lines changed
src/core/Statiq.Common/Meta
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,14 @@ public static class Keys
99
99
/// <summary>
100
100
/// Allows you to set an alternate date/time that the engine will use as the current date/time.
101
101
/// </summary>
102
+ /// <remarks>
103
+ /// Note that this can result in unexpected behavior when using write times or other variable
104
+ /// date/time values for documents (as Statiq Web does). For example, if you set this value
105
+ /// to a date in the past, any time you edit a file, the write time for that file will be set
106
+ /// to the current time and it will no longer be considered before your set
107
+ /// <see cref="CurrentDateTime"/> value. When using this setting, you should also set explicit
108
+ /// dates for all content where applicable (such as "Published" in Statiq Web).
109
+ /// </remarks>
102
110
/// <type cref="DateTime" />
103
111
public const string CurrentDateTime = nameof ( CurrentDateTime ) ;
104
112
You can’t perform that action at this time.
0 commit comments