X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7403ad2d154a8e2974fdc5fc215258f3a75cdde..3d2d9036037d9ee51f47d878c3dcef4af4a6ef41:/wxPython/wx/lib/printout.py diff --git a/wxPython/wx/lib/printout.py b/wxPython/wx/lib/printout.py index 1ca001d975..086a6c1fc0 100644 --- a/wxPython/wx/lib/printout.py +++ b/wxPython/wx/lib/printout.py @@ -173,10 +173,9 @@ class PrintBase: return date + ' ' + time def GetNow(self): - full = str(wx.DateTime_Now()) # get the current date and time in print format - flds = full.split() - date = flds[0] - time = flds[1] + now = wx.DateTime.Now() + date = now.FormatDate() + time = now.FormatTime() return date, time def SetPreview(self, preview):