X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc4c80b8c0381873dbb2236c34cfa69e462cbe69..1f5cf9cc23f7763e9ee7984b171bb4b6a3ce3ffb:/src/html/htmprint.cpp diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 8b957076f1..0dd8817e52 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -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; }