]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmprint.cpp
Intel compilation fix (patch 1540790)
[wxWidgets.git] / src / html / htmprint.cpp
index 8b957076f13a3a40eab225e1abfb4be964350982..0dd8817e522d12d66638d2d6185468d8af28eb21 100644 (file)
@@ -443,6 +443,12 @@ wxString wxHtmlPrintout::TranslateHeader(const wxString& instr, int page)
     num.Printf(wxT("%lu"), (unsigned long)(m_PageBreaks.Count() - 1));
     r.Replace(wxT("@PAGESCNT@"), num);
 
+    const wxDateTime now = wxDateTime::Now();
+    r.Replace(wxT("@DATE@"), now.FormatDate());
+    r.Replace(wxT("@TIME@"), now.FormatTime());
+
+    r.Replace(wxT("@TITLE@"), GetTitle());
+
     return r;
 }