From 67e726c62d9dce9639f7e8444796d962953352b8 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Wed, 5 Dec 2007 13:50:42 +0000 Subject: [PATCH] use local time, not gm time --- pcbnew/dialog_drc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialog_drc.cpp b/pcbnew/dialog_drc.cpp index 69ddea6b62..6f233b9528 100644 --- a/pcbnew/dialog_drc.cpp +++ b/pcbnew/dialog_drc.cpp @@ -1065,9 +1065,10 @@ void DrcDialog::writeReport( FILE* fp ) fprintf( fp, "** Drc report for %s **\n", CONV_TO_UTF8( m_Parent->GetScreen()->m_FileName ) ); + + wxDateTime now = wxDateTime::Now(); - char line[256]; - fprintf( fp, "** Created on %s **\n", DateAndTime( line ) ); //@todo make DateAndTime use localtime, not gmtime + fprintf( fp, "** Created on %s **\n", CONV_TO_UTF8(now.Format( wxT("%F %T"))) ); count = m_ClearanceListBox->GetItemCount();