diff --git a/samples/html/virtual/virtual.cpp b/samples/html/virtual/virtual.cpp
index 6efe0580be..0898d66e13 100644
--- a/samples/html/virtual/virtual.cpp
+++ b/samples/html/virtual/virtual.cpp
@@ -67,7 +67,7 @@ wxFSFile* MyVFS::OpenFile(wxFileSystem& fs, const wxString& location)
// WARNING: wxMemoryInputStream will not free buf.
// There is a memory leak here.
str = new wxMemoryInputStream(buf, strlen(buf));
- f = new wxFSFile(str, location, "text/html", wxEmptyString);
+ f = new wxFSFile(str, location, "text/html", wxEmptyString, wxDateTime::Today());
return f;
}