diff --git a/ClosedXML/ClosedXML/ClosedXML_Examples/Misc/WorkbookProperties.cs b/ClosedXML/ClosedXML/ClosedXML_Examples/Misc/WorkbookProperties.cs index 60bb8c8..3a32bcf 100644 --- a/ClosedXML/ClosedXML/ClosedXML_Examples/Misc/WorkbookProperties.cs +++ b/ClosedXML/ClosedXML/ClosedXML_Examples/Misc/WorkbookProperties.cs @@ -58,7 +58,7 @@ // Creating/Using custom properties wb.CustomProperties.Add("theText", "XXX"); - wb.CustomProperties.Add("theDate", new DateTime(2011, 1, 1)); + wb.CustomProperties.Add("theDate", new DateTime(2011, 1, 1, 17, 0, 0, DateTimeKind.Utc)); // Use UTC to make sure test can be run in any time zone wb.CustomProperties.Add("theNumber", 123.456); wb.CustomProperties.Add("theBoolean", true);